Jhonny Göransson hace 9 meses
padre
commit
f14ac06dcb

+ 1 - 0
.gitignore

@@ -16,3 +16,4 @@ node_modules/
 
 # Mac
 .DS_Store
+/.editor_settings

+ 1 - 1
examples/model/cubemap/cubemap.collection

@@ -35,7 +35,7 @@ embedded_instances {
   "  data: \"aspect_ratio: 1.0\\n"
   "fov: 0.7854\\n"
   "near_z: 1.0\\n"
-  "far_z: 1500.0\\n"
+  "far_z: 100.0\\n"
   "\"\n"
   "}\n"
   ""

+ 1 - 1
examples/model/cubemap/cubemap.script

@@ -1,5 +1,5 @@
 local ZOOM_SPEED = 0.1
-local ROTATION_SPEED = 2
+local ROTATION_SPEED = 1
 
 function init(self)
 	msg.post("@render:", "use_camera_projection")

+ 0 - 32
examples/model/cubemap/cubemap_model.material

@@ -5,32 +5,10 @@ fragment_program: "/examples/model/cubemap/cubemap_model.fp"
 vertex_constants {
   name: "view_proj"
   type: CONSTANT_TYPE_VIEWPROJ
-  value {
-  }
 }
 vertex_constants {
   name: "world"
   type: CONSTANT_TYPE_WORLD
-  value {
-  }
-}
-vertex_constants {
-  name: "normal_transform"
-  type: CONSTANT_TYPE_NORMAL
-  value {
-  }
-}
-vertex_constants {
-  name: "viewMatrix"
-  type: CONSTANT_TYPE_VIEW
-  value {
-  }
-}
-vertex_constants {
-  name: "world_view"
-  type: CONSTANT_TYPE_WORLDVIEW
-  value {
-  }
 }
 vertex_constants {
   name: "cameraPosition"
@@ -38,16 +16,6 @@ vertex_constants {
   value {
   }
 }
-fragment_constants {
-  name: "tint"
-  type: CONSTANT_TYPE_USER
-  value {
-    x: 1.0
-    y: 1.0
-    z: 1.0
-    w: 1.0
-  }
-}
 samplers {
   name: "envMap"
   wrap_u: WRAP_MODE_CLAMP_TO_EDGE