Try using the updated code from the POM material thread towards the end. Page 5 should have it. I’m not sure what is going on but there was an early version of this code that had a questionable texture lookup method. Maybe that is causing some problems?
Also if that does not work, what is your video card?
If you want to try just swapping the texture sample lines find these 2 lines:
float4 Temp = Material.Texture2D_0.SampleGrad( Material.Texture2D_0Sampler, InTexCoord + CurrOffset, InDX, InDY );
CurrSampledHeight = ( ( Temp.r * InChannelMask.r ) + ( Temp.g * InChannelMask.g ) + ( Temp.b * InChannelMask.b ) );
and replace them with:
CurrSampledHeight = dot(InChannelMask, Tex.SampleGrad(TexSampler,InTexCoord+CurrOffset,InDX,InDY));
Then you must also rename the heightmap input “NormalHeightMap” to “Tex”.
If that doesn’t work try removing the “calcSilhouette” node.
When replaced two old lines with one new and rename the heightmap input “NormalHeightMap” to "Tex in “CalcParallax” custom material expression the following error was occured:
“Error [SM5] error X3004: undeclared identifier ‘TexSampler’”