문제

I am using a pixel shader code that uses the Sample Function. I want to use SampleGrad and hence want to calculate the derivatives in my shader code. Is there a way to do the same?

Thanks.

도움이 되었습니까?

해결책

Found an intrinsic function ddx and ddy to do the same. Thanks.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top