sampler2D DecalTexture; samplerCUBE RealtimeReflectionTex; struct PS_INPUT{ float4 Color : COLOR0; float2 Tex : TEXCOORD0; float3 R : TEXCOORD1; }; struct PS_OUTPUT{ float4 Color : COLOR; }; PS_OUTPUT main(const PS_INPUT Input){ float3 Reflection = texCUBE(RealtimeReflectionTex, Input.R); float4 Result = tex2D(DecalTexture, Input.Tex) * Input.Color; Result.rgb *= Result.a; Result.rgb += Reflection; PS_OUTPUT Out; Out.Color = Result; return Out; }