레퍼런스 lights()

lights()

장면에 주변광(ambientLight)과 방향성 광원(directionalLight)을 배치합니다. 빛은 ambientLight(128, 128, 128) 및 directionalLight(128, 128, 128, 0, 0, -1)로 설정됩니다.

참고 : 빛은 반복(looping) 프로그램에서 지속되려면 draw()내에서 (직접적이든 간접적이든) 호출되어야 합니다. setup() 안에 배치하면 루프를 처음 실행할 때만 효과가 발생합니다.

예제

This page is generated from the comments in src/webgl/light.js . Please feel free to edit it and submit a pull request!

관련 레퍼런스