Quantcast
Channel: AMD Developer Forums: Message List - OpenGL & Vulkan
Viewing all articles
Browse latest Browse all 631

Re: textureProj() and textureProjOffset() not working using latest HD 5800 driver

$
0
0

Hi davychen!

 

Your test code is fully functional for me aswell. The problem seems to occur when using sampler2DShadow as the first parameter. Here's a little snippet from my code:

 

uniform sampler2DShadow ShadowDepthTex;

...

vec4 shadowCoord = BiasMatrix * ShadowViewProj * worldPos;

float sum = 0;

// Sum contributions from texels around ShadowCoord

sum += textureProjOffset(ShadowDepthTex, shadowCoord, ivec2(-1,-1));

sum += textureProjOffset(ShadowDepthTex, shadowCoord, ivec2(-1,1));

sum += textureProjOffset(ShadowDepthTex, shadowCoord, ivec2(1,1));

sum += textureProjOffset(ShadowDepthTex, shadowCoord, ivec2(1,-1));

 

Regards,

Marcus


Viewing all articles
Browse latest Browse all 631

Trending Articles