3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: CarPainter  (Read 1827 times)

« on: August 10, 2010, 08:34:09 AM »
Car Painter

Simple example project to repaint car with a random color :)

Code: [Select]
void Main()
{
   float R=iFloatRand(0,1);
   float G=iFloatRand(0,1);
   float B=iFloatRand(0,1);
   iShaderFloat3Set(OBJ_0,"cColor",R,G,B);
   iScriptStop();
}


Requires 3DRad 6.49
Requires Addon : http://www.3drad.com/addons/SystemShaders1_shx.php
Example project attached below.



« Last Edit: August 10, 2010, 08:36:05 AM by shadmar »
« Reply #1 on: August 10, 2010, 08:53:51 AM »
Works very well also with other shaders.
This is the beginner level of scripting that I can handle :P
Thanks shadmar
new forum search:
http://www.google.com/ site:www.3drad.com searchword  ( <-- copy )
3DRad is now in the same Brain-Area like my old C64 and Amiga Memories!
Pages: [1]