Shop integration

This commit is contained in:
2026-01-14 17:47:58 +01:00
parent be7f7b7bf7
commit 21b78f8d17
52 changed files with 5288 additions and 198 deletions

View File

@@ -0,0 +1,20 @@
varying vec2 vUv;
varying float vDisplacement;
uniform sampler2D tDepth;
uniform float uDepthScale;
void main() {
vUv = uv;
// Read depth from texture
float depth = texture2D(tDepth, uv).r;
vDisplacement = depth;
// Displace z position based on depth
vec3 newPosition = position;
newPosition.z += depth * uDepthScale;
gl_Position = projectionMatrix * modelViewMatrix * vec4(newPosition, 1.0);
}