Skip to content

client_lighting_advanced_shadowViz

Fichier : lua/ge/client/lighting/advanced/shadowViz.lua · VM : Game Engine (GE) · 95 lignes · BeamNG.drive 0.40.5 (buildbot 302427 on GitLab)

Accès : require("client/lighting/advanced/shadowViz")

Déclare, s'ils n'existent pas, le ShaderData « AL_ShadowVisualizeShader » (dbgShadowVisualizeP.hlsl) et le CustomMaterial « AL_ShadowVisualizeMaterial » qui affiche la shadow map d'une lumière (échantillonneur shadowMap = #AL_ShadowVizTexture). Le reste du fichier, des fonctions TorqueScript de bascule (toggleShadowViz, showShadowVizForLight, lockShadowViz…), est entièrement commenté et donc inactif. Aucune fonction exportée.

Appels vers le moteur (C++)

  • scenetree. findObject

tim19Atlas (Tim0219800) — dérivé du code Lua de BeamNG GmbH (bCDDL 1.1, voir LICENSE). Source : lua/ge/client/lighting/advanced/shadowViz.lua.