nngn
Loading...
Searching...
No Matches
gamma.lua File Reference

Functions

local vec3 (0, 1, 0)
 
local vec3 (0, 0, 1)
 
function demo_start () end
 

Variables

local camera = require "nngn.lib.camera"
 
local entity = require "nngn.lib.entity"
 
local N
 
local S< const > = 32
 
local local vec3< const > = require("nngn.lib.math").vec3
 
local r
 
local g
 
local b< const > = vec3(1, 0, 0)
 
for i = 0
 
for N do
 
local c = vec3(i / N)
 
 pos = {S * (i - N / 2), t[1], 0}
 
 renderer = {type = Renderer.CUBE, color = t[2], size = S}
 

Function Documentation

◆ demo_start()

function demo_start ( )

◆ vec3() [1/2]

local vec3 ( 0 ,
0 ,
1  )

◆ vec3() [2/2]

local vec3 ( 0 ,
1 ,
0  )

Variable Documentation

◆ b< const >

local b< const > = vec3(1, 0, 0)

◆ c

local c = vec3(i / N)

◆ camera

local camera = require "nngn.lib.camera"

◆ do

for N do

◆ entity

local entity = require "nngn.lib.entity"

◆ g

local g

◆ i

for i = 0

◆ N

local N

◆ pos

pos = {S * (i - N / 2), t[1], 0}

◆ r

local r

◆ renderer

renderer = {type = Renderer.CUBE, color = t[2], size = S}

◆ S< const >

local S< const > = 32

◆ vec3< const >

local local vec3< const > = require("nngn.lib.math").vec3