- Properties {
- _ Envmap ("envmap", 2d) = "black" {texgen spheremap}
- }
- Subshader {
- Pass {
- Name "base"
- Bindchannels {
- Bind "vertex", Vertex
- Bind "normal", normal
- }
- Settexture [_ envmap] {
- Combine texture
- }
- }
- }
- Fallback off
- }
Shader "My/envmap" {</P> <p> properties {<br/> _ envmap ("envmap", 2d) = "black" {texgen spheremap} <br/>}</P> <p> subshader {<br/> pass {<br/> name "base" <br/> bindchannels {<br/> bind "vertex ", vertex <br/> bind "normal ", normal <br/>}< br/> settexture [_ envmap] {<br/> combine texture <br/>}</P> <p> fallback off <br/>}
[JavaScript]
View plaincopyprint?
- Shader "My/envmapglass"
- {
- Properties
- {
- _ Envmap ("envmap", 2d) = "black" {texgen spheremap}
- }
- Subshader
- {
- Seperatespecular on
- Pass
- {
- Name "base"
- Cull front
- Blend one oneminusdstcolor
- // Blend one
- Bindchannels
- {
- Bind "vertex", Vertex
- Bind "normal", normal
- }
- Settexture [_ envmap]
- {
- Combine texture
- }
- }
- Pass
- {
- Name "base"
- Zwrite on
- Blend one
- Bindchannels
- {
- Bind "vertex", Vertex
- Bind "normal", normal
- }
- Settexture [_ envmap]
- {
- Combine texture
- }
- }
- }
- Fallback off
- }