Files
VR-WuKong/Packages/PICO Unity Integration SDK-3.3.2-20251111/SpatialAudio/Samples/Resources/WireframeTransparentCulled.shader
2025-11-13 17:40:28 +08:00

46 lines
944 B
Plaintext

Shader "SuperSystems/Wireframe-Transparent-Culled"
{
Properties
{
_WireThickness ("Wire Thickness", RANGE(0, 800)) = 100
_WireSmoothness ("Wire Smoothness", RANGE(0, 20)) = 3
_WireColor ("Wire Color", Color) = (0.0, 1.0, 0.0, 1.0)
_BaseColor ("Base Color", Color) = (0.0, 0.0, 0.0, 0.0)
_MaxTriSize ("Max Tri Size", RANGE(0, 200)) = 25
}
SubShader
{
Tags {
"IgnoreProjector"="True"
//"Queue"="Transparent"
"RenderType"="Transparent"
}
//Pass
//{
// ZWrite On
// ColorMask 0
//}
Pass
{
Blend SrcAlpha OneMinusSrcAlpha
ZWrite On
ZTest Less
// Wireframe shader based on the the following
// http://developer.download.nvidia.com/SDK/10/direct3d/Source/SolidWireframe/Doc/SolidWireframe.pdf
CGPROGRAM
#pragma vertex vert
#pragma geometry geom
#pragma fragment frag
#include "UnityCG.cginc"
#include "Wireframe.cginc"
ENDCG
}
}
}