Skip to content

Commit

Permalink
Remove unused blockstates
Browse files Browse the repository at this point in the history
  • Loading branch information
onnowhere committed Apr 6, 2021
1 parent 9abe85d commit e6eeec1
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 145 deletions.

This file was deleted.

51 changes: 0 additions & 51 deletions OrthographicShaderRP/assets/minecraft/blockstates/deepslate.json

This file was deleted.

9 changes: 0 additions & 9 deletions OrthographicShaderRP/assets/minecraft/blockstates/dirt.json

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions OrthographicShaderRP/assets/minecraft/blockstates/grass_block.json

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions OrthographicShaderRP/assets/minecraft/blockstates/podzol.json

This file was deleted.

9 changes: 0 additions & 9 deletions OrthographicShaderRP/assets/minecraft/blockstates/sand.json

This file was deleted.

18 changes: 0 additions & 18 deletions OrthographicShaderRP/assets/minecraft/blockstates/stone.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
#define LIGHT0_DIRECTION vec3(0.2, 1.0, -0.7) // Default light 0 direction everywhere except in inventory
#define LIGHT1_DIRECTION vec3(-0.2, 1.0, 0.7) // Default light 1 direction everywhere except in nether and inventory

/*
* Returns the FOV in degrees
* Calculates using the fact that top/near = tan(theta / 2)
*/
float getFOV(mat4 ProjMat) {
return atan(1.0, ProjMat[1][1]) * 114.591559;
}

/*
* Returns if rendering in a GUI
* In the GUI, near is 1000 and far is 3000, so -(far+near)/(far-near) = -2.0
Expand Down

0 comments on commit e6eeec1

Please sign in to comment.