SelfIllumination.shader 604 B

12345678910111213141516171819
  1. Shader "Self_Illumination" {
  2. Properties {
  3. _IlluminCol ("Self-Illumination color (RGB)", Color) = (0.64,0.64,0.64,1)
  4. _MainTex ("Base (RGB) Self-Illumination (A)", 2D) = "white" {}
  5. }
  6. SubShader {
  7. Tags { "QUEUE"="Geometry" "IGNOREPROJECTOR"="true" }
  8. Pass {
  9. Tags { "QUEUE"="Geometry" "IGNOREPROJECTOR"="true" }
  10. Material {
  11. Ambient (1,1,1,1)
  12. Diffuse (1,1,1,1)
  13. }
  14. SetTexture [_MainTex] { ConstantColor [_IlluminCol] combine constant * texture }
  15. SetTexture [_MainTex] { combine previous + texture }
  16. SetTexture [_MainTex] { ConstantColor [_IlluminCol] combine previous * constant }
  17. }
  18. }
  19. }