Files
JJBB/Assets/Project/Shader/ClipSpaceClipping.cginc
2024-08-23 15:49:34 +08:00

8 lines
353 B
HLSL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 主要CG代码逻辑SubShader只负责组装这些逻辑
#ifndef ClipSpaceClipping_INCLUDE
#define ClipSpaceClipping_INCLUDE
#define COMPUTECLIPPOSITION(o, vertex) o.clipPos = vertex.xy / vertex.w;
#define CHECKCLIPPING(i) i.clipPos.x < _ClipArea.x || i.clipPos.x > _ClipArea.z || i.clipPos.y < _ClipArea.y || i.clipPos.y > _ClipArea.w
#endif