diff options
| author | jussi | 2024-03-17 10:38:30 +0200 |
|---|---|---|
| committer | jussi | 2024-03-17 10:38:30 +0200 |
| commit | ae1d0b65f16b24f2e0db39cb8baef4af57b2a12f (patch) | |
| tree | 80358810635da19821bdb38ece2098c2dd48f1ff /examples/lightmap/main.lua | |
| parent | ca238975dc63d2dddcd2b17ad627bedc95dd158c (diff) | |
| download | reilua-enhanced-ae1d0b65f16b24f2e0db39cb8baef4af57b2a12f.tar.gz reilua-enhanced-ae1d0b65f16b24f2e0db39cb8baef4af57b2a12f.tar.bz2 reilua-enhanced-ae1d0b65f16b24f2e0db39cb8baef4af57b2a12f.zip | |
Round and pubsub lib.
Diffstat (limited to 'examples/lightmap/main.lua')
| -rw-r--r-- | examples/lightmap/main.lua | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/examples/lightmap/main.lua b/examples/lightmap/main.lua index b7f3a93..20a2729 100644 --- a/examples/lightmap/main.lua +++ b/examples/lightmap/main.lua @@ -31,15 +31,12 @@ function RL.init() camera:setTarget( { 0, 0, 0 } ) camera:setUp( { 0, 1, 0 } ) camera.mode = camera.MODES.ORBITAL - -- camera.mode = camera.MODES.FREE - -- camera.mode = camera.MODES.FIRST_PERSON - local ts = PLANE_SIZE local meshData = { vertices = { { 0, 0, 0 }, { 0, 0, PLANE_SIZE }, { PLANE_SIZE, 0, PLANE_SIZE }, { 0, 0, 0 }, { PLANE_SIZE, 0, PLANE_SIZE }, { PLANE_SIZE, 0, 0 } }, - texcoords = { { 0, 0 }, { 0, ts }, { ts, ts }, - { 0, 0 }, { ts, ts }, { ts, 0 } }, + texcoords = { { 0, 0 }, { 0, PLANE_SIZE }, { PLANE_SIZE, PLANE_SIZE }, + { 0, 0 }, { PLANE_SIZE, PLANE_SIZE }, { PLANE_SIZE, 0 } }, texcoords2 = { { 0, 0 }, { 0, 1 }, { 1, 1 }, { 0, 0 }, { 1, 1 }, { 1, 0 } }, colors = { RL.WHITE, RL.WHITE, RL.WHITE, @@ -80,7 +77,7 @@ function RL.init() }, } material = RL.CreateMaterial( materialData ) - matrix = RL.MatrixMultiply( RL.MatrixIdentity(), RL.MatrixTranslate( { -4, 0, -4 } ) ) + matrix = RL.MatrixTranslate( { -PLANE_SIZE / 2, 0, -PLANE_SIZE / 2 } ) end function RL.update( delta ) |
