浏览代码

Merge branch 'Add-Per-Pixel-scale' of https://github.com/Unity-Technologies/ScriptableRenderPipeline into Add-Per-Pixel-scale

/stochastic_alpha_test
sebastienlagarde 7 年前
当前提交
fecb7ce9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/LitData.hlsl

2
ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/LitData.hlsl


int numSteps = (int)lerp(_PPDMinSamples, _PPDMaxSamples, unitAngle);
float2 offset = ParallaxOcclusionMapping(lod, _PPDLodThreshold, numSteps, viewDirUV, 1, ppdParam, planeHeight);
layerTexCoord.base.uvXZ += offset;
layerTexCoord.base.uvXZ += offset;
layerTexCoord.details.uvXZ += offset;
height += layerTexCoord.triplanarWeights.y * planeHeight;
NdotV += layerTexCoord.triplanarWeights.y * viewDirTS.z;

正在加载...
取消
保存