Remove use of texture2d in rh.frag
This commit is contained in:
parent
c4238d2089
commit
23bc1f9344
@ -60,7 +60,7 @@ void main(void)
|
|||||||
vec2 uv = RHuv + offset * 0.01;
|
vec2 uv = RHuv + offset * 0.01;
|
||||||
|
|
||||||
// Get world position and normal from the RSM sample
|
// Get world position and normal from the RSM sample
|
||||||
float depth = texture2D(dtex, uv).z;
|
float depth = texture(dtex, uv).z;
|
||||||
vec4 RSMPos = inverse(RSMMatrix) * (2. * vec4(uv, depth, 1.) - 1.);
|
vec4 RSMPos = inverse(RSMMatrix) * (2. * vec4(uv, depth, 1.) - 1.);
|
||||||
RSMPos /= RSMPos.w;
|
RSMPos /= RSMPos.w;
|
||||||
vec3 RSMAlbedo = texture(ctex, uv).xyz;
|
vec3 RSMAlbedo = texture(ctex, uv).xyz;
|
||||||
|
Loading…
Reference in New Issue
Block a user