MCPcopy Create free account
hub / github.com/RobLoach/raylib-cpp / Light

Class Light

examples/shaders/shaders_basic_pbr.cpp:44–59  ·  view source on GitHub ↗

Light data

Source from the content-addressed store, hash-verified

42
43// Light data
44struct Light {
45 LightType type;
46 int enabled;
47 raylib::Vector3 position;
48 raylib::Vector3 target;
49 std::array<float, 4> color;
50 float intensity;
51
52 // Shader light parameters locations
53 int typeLoc;
54 int enabledLoc;
55 int positionLoc;
56 int targetLoc;
57 int colorLoc;
58 int intensityLoc;
59};
60
61//----------------------------------------------------------------------------------
62// Global Variables Definition

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected