Zephus 发表于 2021-4-23 06:23

谢谢大佬分享

Mecanim 发表于 2021-4-23 06:29

float[] nears = { near, far * 0.067f + near, far * 0.133f + far * 0.067f + near, far * 0.267f + far * 0.133f + far * 0.067f + near };
    float[] fars = { far * 0.067f + near, far * 0.133f + far * 0.067f + near, far * 0.267f + far * 0.133f + far * 0.067f + near, far };

请问大佬,这里是不是应该为 (far - near ) * 0.067f + near 类似这样的

RhinoFreak 发表于 2021-4-23 06:31

大佬你要是有赞赏我肯定赞赏
页: 1 [2]
查看完整版本: Unity实时阴影实现——Cascaded Shadow Mapping