mirror of
https://github.com/fadden/6502bench.git
synced 2026-04-22 01:16:42 +00:00
Add rotation and backface culling
Also, correctly update the thumbnail when leaving the visualization editor.
This commit is contained in:
@@ -43,10 +43,11 @@ namespace WireframeTest {
|
||||
P_OFFSET, typeof(int), 0, 0x00ffffff, VisParamDescr.SpecialMode.Offset, 0),
|
||||
|
||||
// These are interpreted by the main app.
|
||||
VisWireframe.Param_EulerX("Euler rotation X", 0),
|
||||
VisWireframe.Param_EulerY("Euler rotation Y", 0),
|
||||
VisWireframe.Param_EulerZ("Euler rotation Z", 0),
|
||||
VisWireframe.Param_EulerX("Rotation about X", 0),
|
||||
VisWireframe.Param_EulerY("Rotation about Y", 0),
|
||||
VisWireframe.Param_EulerZ("Rotation about Z", 0),
|
||||
VisWireframe.Param_IsPerspective("Perspective projection", true),
|
||||
VisWireframe.Param_IsBfcEnabled("Backface culling", true),
|
||||
}),
|
||||
};
|
||||
|
||||
|
||||
Binary file not shown.
@@ -29,21 +29,21 @@ vertices
|
||||
|
||||
; List of edges (vertex0, vertex1, face0, face1).
|
||||
edges
|
||||
dfb 0,1, 0,1 ;0
|
||||
dfb 1,2, 0,3 ;1
|
||||
dfb 2,3, 0,4 ;2
|
||||
dfb 3,0, 0,2 ;3
|
||||
dfb 4,5, 1,5 ;4
|
||||
dfb 5,6, 1,3 ;5
|
||||
dfb 6,7, 1,4 ;6
|
||||
dfb 7,4, 1,2 ;7
|
||||
dfb 0,4, 2,5 ;8
|
||||
dfb 1,5, 3,5 ;9
|
||||
dfb 2,6, 3,4 ;10
|
||||
dfb 3,7, 2,4 ;11
|
||||
dfb 0,1, 0,5 ;0
|
||||
dfb 1,2, 0,3 ;1
|
||||
dfb 2,3, 0,4 ;2
|
||||
dfb 3,0, 0,2 ;3
|
||||
dfb 4,5, 1,5 ;4
|
||||
dfb 5,6, 1,3 ;5
|
||||
dfb 6,7, 1,4 ;6
|
||||
dfb 7,4, 1,2 ;7
|
||||
dfb 0,4, 2,5 ;8
|
||||
dfb 1,5, 3,5 ;9
|
||||
dfb 2,6, 3,4 ;10
|
||||
dfb 3,7, 2,4 ;11
|
||||
|
||||
dfb 8,9, 0,0 ;12
|
||||
dfb 9,10,0,0 ;13
|
||||
dfb 8,9, 0,0 ;12
|
||||
dfb 9,10, 0,0 ;13
|
||||
dfb $80
|
||||
|
||||
; List of faces (surface normal X,Y,Z).
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{
|
||||
"_ContentVersion":3,
|
||||
"FileDataLength":120,
|
||||
"FileDataCrc32":1432202158,
|
||||
"FileDataCrc32":1015994132,
|
||||
"ProjectProps":{
|
||||
"CpuName":"6502",
|
||||
"IncludeUndocumentedInstr":false,
|
||||
@@ -245,10 +245,11 @@
|
||||
"VisGenIdent":"wireframe-test",
|
||||
"VisGenParams":{
|
||||
"offset":10,
|
||||
"_eulerRotX":0,
|
||||
"_eulerRotY":0,
|
||||
"_eulerRotX":15,
|
||||
"_eulerRotY":30,
|
||||
"_eulerRotZ":0,
|
||||
"_isPerspective":true}},
|
||||
"_isPerspective":true,
|
||||
"_isBfcEnabled":true}},
|
||||
|
||||
{
|
||||
"Tag":"bmp_data",
|
||||
|
||||
Reference in New Issue
Block a user