Author Topic: Question about lighting  (Read 600 times)

SaturnTeam

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +5/-0
    • View Profile
    • Saturn Team
Question about lighting
« 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?
« Last Edit: November 02, 2017, 07:13:06 pm by SaturnTeam »
Founder of Saturn Team

SaturnTeam

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +5/-0
    • View Profile
    • Saturn Team
Re: Question about lighting
« Reply #1 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.
Founder of Saturn Team

 

Sitemap 1 2 3 4 5 6 7 8 9 10 
SMF spam blocked by CleanTalk