浏览代码

Use any to check out of bounds uvs

/stochastic_alpha_test
Frédéric Vauchelles 7 年前
当前提交
4391f089
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/Lit.hlsl

4
ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/Lit.hlsl


// Exit if texel is out of color buffer
// Or if the texel is from an object in front of the object
if (refractedBackPointDepth < posInput.depthVS
|| refractedBackPointSS.x < 0.0 || refractedBackPointSS.x > 1.0
|| refractedBackPointSS.y < 0.0 || refractedBackPointSS.y > 1.0)
|| any(refractedBackPointSS < 0.0)
|| any(refractedBackPointSS > 1.0))
{
diffuseLighting = SAMPLE_TEXTURE2D_LOD(_GaussianPyramidColorTexture, sampler_GaussianPyramidColorTexture, posInput.positionSS, 0.0).rgb;
return;

正在加载...
取消
保存