noLights

def setup
  createCanvas(100, 100, WEBGL)
end

def draw
  background(0)
  noStroke

  lights
  translate(-25, 0, 0)
  sphere(20)

  noLights
  translate(50, 0, 0)
  sphere(20)
end

p5.jsリファレンス(参考情報)

[p5.js] noLights

概要

配置されているすべてのライトを除去します。

書式

noLights

引数

なし

戻値

なし

備考

関連

ambientLight
directionalLight
spotLight
pointLight
lights