File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
packages/three-vrm-materials-mtoon/src/nodes Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,6 @@ export class MToonAnimatedUVNode extends THREE.TempNode {
41
41
const scroll = THREE . vec2 ( refUVAnimationScrollXOffset , refUVAnimationScrollYOffset ) . mul ( uvAnimationMask ) ;
42
42
uv = uv . add ( scroll ) ;
43
43
44
- return uv . temp ( 'AnimatedUV' ) ;
44
+ return uv . toVar ( 'AnimatedUV' ) ;
45
45
}
46
46
}
Original file line number Diff line number Diff line change 1
1
import * as THREE from 'three/webgpu' ;
2
2
3
- export const shadeColor = THREE . nodeImmutable ( THREE . PropertyNode , 'vec3' ) . temp ( 'ShadeColor' ) ;
4
- export const shadingShift = THREE . nodeImmutable ( THREE . PropertyNode , 'float' ) . temp ( 'ShadingShift' ) ;
5
- export const shadingToony = THREE . nodeImmutable ( THREE . PropertyNode , 'float' ) . temp ( 'ShadingToony' ) ;
6
- export const rimLightingMix = THREE . nodeImmutable ( THREE . PropertyNode , 'float' ) . temp ( 'RimLightingMix' ) ;
7
- export const rimMultiply = THREE . nodeImmutable ( THREE . PropertyNode , 'vec3' ) . temp ( 'RimMultiply' ) ;
8
- export const matcap = THREE . nodeImmutable ( THREE . PropertyNode , 'vec3' ) . temp ( 'matcap' ) ;
9
- export const parametricRim = THREE . nodeImmutable ( THREE . PropertyNode , 'vec3' ) . temp ( 'ParametricRim' ) ;
3
+ export const shadeColor = THREE . nodeImmutable ( THREE . PropertyNode , 'vec3' ) . toVar ( 'ShadeColor' ) ;
4
+ export const shadingShift = THREE . nodeImmutable ( THREE . PropertyNode , 'float' ) . toVar ( 'ShadingShift' ) ;
5
+ export const shadingToony = THREE . nodeImmutable ( THREE . PropertyNode , 'float' ) . toVar ( 'ShadingToony' ) ;
6
+ export const rimLightingMix = THREE . nodeImmutable ( THREE . PropertyNode , 'float' ) . toVar ( 'RimLightingMix' ) ;
7
+ export const rimMultiply = THREE . nodeImmutable ( THREE . PropertyNode , 'vec3' ) . toVar ( 'RimMultiply' ) ;
8
+ export const matcap = THREE . nodeImmutable ( THREE . PropertyNode , 'vec3' ) . toVar ( 'matcap' ) ;
9
+ export const parametricRim = THREE . nodeImmutable ( THREE . PropertyNode , 'vec3' ) . toVar ( 'ParametricRim' ) ;
You can’t perform that action at this time.
0 commit comments