-
Notifications
You must be signed in to change notification settings - Fork 4
/
DotProductShaderNode.ts
31 lines (29 loc) · 1.06 KB
/
DotProductShaderNode.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import DotProductShaderityObject from '../../../webgl/shaderity_shaders/nodes/DotProduct.glsl';
import {ComponentTypeEnum} from '../../../foundation/definitions/ComponentType';
import {CompositionTypeEnum} from '../../../foundation/definitions/CompositionType';
import { AbstractShaderNode } from '../core/AbstractShaderNode';
import {CompositionType} from '../../definitions/CompositionType';
import {ComponentType} from '../../definitions/ComponentType';
export class DotProductShaderNode extends AbstractShaderNode {
constructor(
compositionType: CompositionTypeEnum,
componentType: ComponentTypeEnum
) {
super('dotProduct', DotProductShaderityObject.code);
this.__inputs.push({
compositionType: compositionType,
componentType: componentType,
name: 'lhs',
});
this.__inputs.push({
compositionType: compositionType,
componentType: ComponentType.Float,
name: 'rhs',
});
this.__outputs.push({
compositionType: CompositionType.Scalar,
componentType: componentType,
name: 'outValue',
});
}
}