123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- import {
- FloatUniform, Vector2Uniform, Vector3Uniform, Vector4Uniform,
- ColorUniform, Matrix3Uniform, Matrix4Uniform
- } from '../WebGPUUniform.js';
- class FloatNodeUniform extends FloatUniform {
- constructor( nodeUniform ) {
- super( nodeUniform.name, nodeUniform.value );
- this.nodeUniform = nodeUniform;
- }
- getValue() {
- return this.nodeUniform.value;
- }
- }
- class Vector2NodeUniform extends Vector2Uniform {
- constructor( nodeUniform ) {
- super( nodeUniform.name, nodeUniform.value );
- this.nodeUniform = nodeUniform;
- }
- getValue() {
- return this.nodeUniform.value;
- }
- }
- class Vector3NodeUniform extends Vector3Uniform {
- constructor( nodeUniform ) {
- super( nodeUniform.name, nodeUniform.value );
- this.nodeUniform = nodeUniform;
- }
- getValue() {
- return this.nodeUniform.value;
- }
- }
- class Vector4NodeUniform extends Vector4Uniform {
- constructor( nodeUniform ) {
- super( nodeUniform.name, nodeUniform.value );
- this.nodeUniform = nodeUniform;
- }
- getValue() {
- return this.nodeUniform.value;
- }
- }
- class ColorNodeUniform extends ColorUniform {
- constructor( nodeUniform ) {
- super( nodeUniform.name, nodeUniform.value );
- this.nodeUniform = nodeUniform;
- }
- getValue() {
- return this.nodeUniform.value;
- }
- }
- class Matrix3NodeUniform extends Matrix3Uniform {
- constructor( nodeUniform ) {
- super( nodeUniform.name, nodeUniform.value );
- this.nodeUniform = nodeUniform;
- }
- getValue() {
- return this.nodeUniform.value;
- }
- }
- class Matrix4NodeUniform extends Matrix4Uniform {
- constructor( nodeUniform ) {
- super( nodeUniform.name, nodeUniform.value );
- this.nodeUniform = nodeUniform;
- }
- getValue() {
- return this.nodeUniform.value;
- }
- }
- export {
- FloatNodeUniform, Vector2NodeUniform, Vector3NodeUniform, Vector4NodeUniform,
- ColorNodeUniform, Matrix3NodeUniform, Matrix4NodeUniform
- };
|