fix: uv map flipY and triplanar world space, add deployment guide
Build and Deploy / build-and-push (push) Failing after 21s
Build and Deploy / build-and-push (push) Failing after 21s
This commit is contained in:
@@ -43,8 +43,8 @@ export class TriplanarMaterial extends THREE.MeshPhysicalMaterial {
|
||||
`#include <worldpos_vertex>`,
|
||||
`
|
||||
#include <worldpos_vertex>
|
||||
vTriplanarPosition = position; // Object space
|
||||
vTriplanarNormal = normal; // Object space normal
|
||||
vTriplanarPosition = worldPosition.xyz; // World space
|
||||
vTriplanarNormal = normalize((modelMatrix * vec4(normal, 0.0)).xyz); // World space normal
|
||||
`
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user