gutterball-3/Gutterball 3/Assets/MirrorReflection/MirrorReflection.shader
SkunkStudios 71779ef7ac New Version 1.6
New 125 balls & powerups.
Improved graphics.
2025-05-07 06:18:40 +07:00

22 lines
483 B
GLSL

Shader "FX/Mirror Reflection" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
_ReflectionTex ("Reflection", 2D) = "white" { TexGen ObjectLinear }
}
// two texture cards: full thing
Subshader {
Pass {
SetTexture[_MainTex] { combine texture }
SetTexture[_ReflectionTex] { matrix [_ProjMatrix] combine texture * previous }
}
}
// fallback: just main texture
Subshader {
Pass {
SetTexture [_MainTex] { combine texture }
}
}
}