Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -105,6 +105,8 @@

// Apply lighting.
o.color.rgb = col + lights(pos, normal);
o.color.a = col.a;


// Apply Vertex shadows.
fixed a = v.uv.x; // Alpha is in the 0-1 range
@@ -115,7 +117,7 @@
half nDot = dot(normal, fixed3(1, 1, 0));
nDot = clamp(nDot, 0.8, 1);
o.color.rgb *= nDot;
o.color.a = 1.0;
//o.color.a = 1.0;
return o;
}

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
@@ -188,7 +188,7 @@ private void DrawSceneGUI()
brush.color = EditorGUI.ColorField(new Rect(10, 90, 125, 16), brush.color);
brush.shade = EditorGUI.ColorField(new Rect(10, 110, 125, 16), brush.shade);

if (GUI.Button(new Rect(10, 141, 130, 20), "Save Prefab")) { SaveMeshData(mf.sharedMesh, vp.name); }
if (GUI.Button(new Rect(10, 141, 130, 20), "Save Asset")) { SaveMeshData(mf.sharedMesh, vp.name); }
Handles.EndGUI();