Ultra noob.

Hiyah! I’m a complete noob to shaders… I’m currently trying to make one from scratch, as a learning project, and I need some help:

I need to create a CGScript shader, that renders the exact pixels returned by the CGScript, with no modifications. Transparency based on the color.a value in the CGScript would be great.

… How do I do this…?

what is a cgscript shader?

Unity supports cg and glsl as shader languages for programmable pipeline within its ShaderLab pass blocks

I haven’t programmed anything yet. Basically, I’d like a shader with CG script in it, that returns all red and then, renders a literal red on the screen.

from there I can begin to program the CGScript.

EDIT: Facepalm

Sooorry! Totally misread your reply…

CGScript is probably CG. Knowing my memory ,I can’t be certian, but, I’m pretty sure it’s CG.