added camera implementation and plenty of other rendering related stuff - splitted out the initialization of the render context
This commit is contained in:
parent
ae37273021
commit
f7043fc0cb
43 changed files with 23280 additions and 15161 deletions
|
@ -24,12 +24,12 @@ print("v1 ",v1.x,v1.y,v1.z)
|
|||
local q = pw.quaternion.new()
|
||||
print("q",q.x,q.y,q.z,q.w)
|
||||
|
||||
qi = q:inverse()
|
||||
qi = q.inverse
|
||||
print("q.inverse",qi.x,qi.y,qi.z,qi.w)
|
||||
|
||||
local q2 = pw.quaternion.new(0,0,0,1)
|
||||
|
||||
qm = pw.quaternion.lerp(q,qi)
|
||||
qm = pw.quaternion.lerp(q,qi,0.5)
|
||||
print("q.m",qm.x,qm.y,qm.z,qm.w)
|
||||
|
||||
|
||||
|
@ -71,6 +71,8 @@ local w = pw.window.new()
|
|||
|
||||
w.title = "pixwerx 1.0"
|
||||
|
||||
w:set_size(1280,768)
|
||||
|
||||
while w:update()
|
||||
do
|
||||
-- print("update")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue