- Home /
Question by
minhdaubu2 · Sep 12, 2016 at 06:31 PM ·
shadertextureparallaxhlslsample rate
How to use SampleGrad in Unity shader
The code in hlsl but I can't use it.
Unity says "sampler2D object does not have methods"
There's the detail SampleGrad (DirectX HLSL Texture Object)
The article relate to A Closer Look At Parallax Occlusion Mapping
Comment
Answer by PolayToy · Nov 18, 2021 at 04:39 PM
Hi, I am working on the same problem. I have found this post which is published in 2016.Here is the link:
https://forum.unity.com/threads/how-to-use-samplegrad-in-unity-shader.430857/