2026-03-27 23:57:08 -07:00
|
|
|
Shader "Custom/prueba" {
|
|
|
|
|
Properties {
|
|
|
|
|
_Color ("Main Color", Color) = (1,1,1,1)
|
|
|
|
|
_SpecColor ("Spec Color", Color) = (1,1,1,0)
|
|
|
|
|
_Emission ("Emissive Color", Color) = (0,0,0,0)
|
|
|
|
|
_Shininess ("Shininess", Range (0.1, 1)) = 0.7
|
|
|
|
|
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SubShader {
|
|
|
|
|
Tags {"RenderType"="Transparent" "Queue"="Transparent"}
|
|
|
|
|
// Render into depth buffer only
|
2026-02-05 05:07:55 -08:00
|
|
|
Pass {
|
2026-03-27 23:57:08 -07:00
|
|
|
ColorMask 0
|
|
|
|
|
}
|
|
|
|
|
// Render normally
|
|
|
|
|
Pass {
|
|
|
|
|
ZWrite Off
|
|
|
|
|
Blend SrcAlpha OneMinusSrcAlpha
|
|
|
|
|
ColorMask RGB
|
|
|
|
|
Material {
|
|
|
|
|
Diffuse [_Color]
|
|
|
|
|
Ambient [_Color]
|
|
|
|
|
Shininess [_Shininess]
|
|
|
|
|
Specular [_SpecColor]
|
|
|
|
|
Emission [_Emission]
|
|
|
|
|
}
|
|
|
|
|
Lighting On
|
|
|
|
|
SetTexture [_MainTex] {
|
|
|
|
|
Combine texture * primary DOUBLE, texture * primary
|
2026-02-05 05:07:55 -08:00
|
|
|
}
|
|
|
|
|
}
|
2026-03-27 23:57:08 -07:00
|
|
|
}
|
2026-02-05 05:07:55 -08:00
|
|
|
}
|