itch.io is community of indie game creators and players

Devlogs

Add features to light

Construct 3 3DObject Plugin
A browser asset pack made in HTML5

Light changes

  • Change the spotlight cone control to be based on degrees of the cone and portion of the cone size for edge (e.g. 0.2 is 20%)
    • This is a change in behavior - please update the values in previous projects using spotlight.
  • Add specular light control to 3DObject lights (generally use sparingly for a decent look)
  • Add Set View Position to be used for specular calculation (set to the 3D camera location)
  • Add distance attenuation, using the traditional formula: att = att / (1.0*attConstant + distance * attLinear + distance * distance * attSquare)



    See updated example project to test it out.

    Files

    • 3DFlatLight-1-2-0.c3p 1 MB
      Apr 27, 2023
    • 3DObject-2-44-0.c3addon 106 kB
      Apr 27, 2023
    Download Construct 3 3DObject Plugin
    Leave a comment