mirror of
https://github.com/imperialsushi/gutterball-3.git
synced 2025-06-15 05:07:42 +00:00
22 lines
483 B
GLSL
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 }
|
|
}
|
|
}
|
|
|
|
}
|