From part 1 of the shader tutorial…
Shader "simple" {
Properties {
_Color ("Main Color", Color) = (1,.5,.5,1)
}
Pass {
Material {
Diffuse [_Color]
}
Lighting On
}
}
Syntax error on line 5. Line five is a closing brace.
It works like this:
Shader "simple" {
Properties {
_Color ("Main Color", Color) = (1,.5,.5,1)
}
SubShader {
Pass {
Material {
Diffuse [_Color]
}
Lighting On
}
}
}
Whooops. And I thought I was the one learning ShaderLab here. ![]()
Waits to find out he’s dead wrong anyways
-Jon