Jo Engine Forum

Sega Saturn Development => General Jo Engine Help => Topic started by: SaturnTeam on November 02, 2017, 06:34:20 pm

Title: Question about lighting
Post by: SaturnTeam on November 02, 2017, 06:34:20 pm
Is there a way to set a global light source (i.e. the sun), rather than having to set it for every object?
EDIT: Right now, I have the light source available globally, but I have to include every object in effects in order to make the light shine on them. It's three lines per item.
Should I just use gouraud shading?
Title: Re: Question about lighting
Post by: SaturnTeam on November 07, 2017, 05:11:13 pm
UPDATE: I have solved this. You have to mention each object, under effects, that you want to be lit. The only thing I haven't solved is getting drawn cubes to be lit. I came up with error-free code for the latter, but it still won't allow itself to be lit. I'll post a tutorial on lighting.