minerd fixes

This commit is contained in:
Vadim Lopatin 2016-08-17 15:33:18 +03:00
parent 737ddfbfbc
commit 98171e5e91
3 changed files with 8 additions and 8 deletions

View File

@ -133,7 +133,7 @@
<useIn>0</useIn>
<useOut>0</useOut>
<useArrayBounds>0</useArrayBounds>
<noboundscheck>0</noboundscheck>
<noboundscheck>1</noboundscheck>
<useSwitchError>0</useSwitchError>
<useUnitTests>0</useUnitTests>
<useInline>1</useInline>
@ -337,7 +337,7 @@
<useIn>0</useIn>
<useOut>0</useOut>
<useArrayBounds>0</useArrayBounds>
<noboundscheck>0</noboundscheck>
<noboundscheck>1</noboundscheck>
<useSwitchError>0</useSwitchError>
<useUnitTests>0</useUnitTests>
<useInline>1</useInline>

View File

@ -95,8 +95,8 @@ X<-----x-----
*/
private immutable float CCC = 0.5; // cell cube coordinates
private immutable float TC0 = 0.03;
private immutable float TC1 = 0.97;
private immutable float TC0 = 0.05;
private immutable float TC1 = 0.95;
__gshared static const float[VERTEX_COMPONENTS * 4] face_vertices_north =
[

View File

@ -154,9 +154,9 @@ class UiWidget : VerticalLayout { //, CellVisitor
dirLightNode.translateX(2);
dirLightNode.translateY(3);
dirLightNode.translateZ(0);
dirLightNode.light = Light.createPoint(vec3(1.0, 1.0, 1.0), 35); //Light.createDirectional(vec3(1, 0.5, 0.5));
dirLightNode.light = Light.createPoint(vec3(1.0, 1.0, 1.0), 55); //Light.createDirectional(vec3(1, 0.5, 0.5));
//dirLightNode.light = Light.createDirectional(vec3(1, 0.5, 0.5));
dirLightNode.light.enabled = false;
dirLightNode.light.enabled = true;
_scene.addChild(dirLightNode);
@ -207,9 +207,9 @@ class UiWidget : VerticalLayout { //, CellVisitor
//updateMinerMesh();
Material minerMaterial = new Material(EffectId("textured.vert", "textured.frag", null), "blocks");
minerMaterial.ambientColor = vec3(0.1,0.1,0.1);
minerMaterial.ambientColor = vec3(0.05,0.05,0.05);
minerMaterial.textureLinear = false;
minerMaterial.fogParams = new FogParams(vec4(0.1, 0.1, 0.1, 1), 12, 60);
minerMaterial.fogParams = new FogParams(vec4(0.01, 0.01, 0.01, 1), 12, 80);
//minerMaterial.specular = 10;
_minerDrawable = new MinerDrawable(_world, minerMaterial, _cam);
//Model minerDrawable = new Model(minerMaterial, _minerMesh);