overbright colors not mentioned in documentation

Description of the problem

there is no mention of overbright values >1.0 being allowed in THREE.Color. Although they work completely fine and are an important feature imo (p.e. for emissive materials)

it simply states ‘value between 0 and 1. Default is 1.’

maybe add ‘bigger than 1 is handled as overbright’

http://threejs.org/docs/?q=standard#Reference/Math/Color

Three.js version
  • Dev
  • r79
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • Linux
  • Android
  • IOS
Hardware Requirements (graphics card, VR Device, …)

Author: Fantashit

1 thought on “overbright colors not mentioned in documentation

  1. I disagree, West. Saying that it only accepts values in a range indicates that it will perform clamping.. which it doesnt.. and in fact, sending values out of that range enables new useful behavior. Knowing about this could have saved me time in the past, working around that percieved limit by making additional source art, or canvas tricks. Just a note in the docs a la “setting values out of these ranges may produce desirable results (like overbright) but cannot be guaranteed across all platforms blahblah. Unless anyone has a more “legit” solution for the over/underbright technique?

Comments are closed.