Tested on maya2008 and got this : // Error: CG ERROR : The compile returned an error. // // Error: (879) : warning C7011: implicit cast from "float4" to "float3" (662) : warning C7011: implicit cast from "float3" to "float" (662) : warning C7011: implicit cast from "float3" to "float" (862) : error C5051: profile does not…
@funshark for whatever reason your system is being extremely picky with code semantics at compile. Probably something to do with the Quadro and its fancier OpenGL drivers. I can defiantly fix those errors, although its a bit hard to test since no system I have gives those. The reason you can still choose some of the…
@funshark after some more thought I'm thinking its probably some slight differences in cgc.exe (Cg Compiler) between Maya versions - I only have 2009 for testing Anyway - upadate to v1.1 download link in first post - probably will still give you at least one blocking compile error (crosses fingers)
I tried the shader at work and it now works, So I guess ATI cards really don't like cgfx shaders. I think my card would be good enough to process the shader. But even with the Nvidia card there still seems to be some error. No matter which technique you select, it keeps going back to the bottom technique. That's in Maya…
Update 1.2 Fixed some more typecasting issues Toon and LitSphere update - now they multiply by the diffuse texture - you can modulate the amount of diffuse texture by changing the diffuse color value (0-1 B&W only, no tinting). The multiplication operation of the toon ramp and diffuse texture looks best with a greyscale…