Lighting

notmyfaultford's icon

Hi,
Does anyone know how to manipulate emissive lighting of an object?
Wanted to create objects that are in effect little lights themselves....either mesh/girdshape or ideally .obj in open gl...

prepend mat_emissive doesnt seem to have any effect

Rob Ramirez's icon

make sure @lighting_enable 1, and @auto_material 0 (neither of these are the default) on your gl object. mat_emission will do the trick after this.

note, the "light" created will not illuminate other objects in the scene with this property, you will probably have to use gl.sketch to enable lights and position them where your emissive objects are.

-rob