mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
A lot of changes in almost all files
This commit is contained in:
parent
cd3e737385
commit
bc9d29cf68
28 changed files with 3485 additions and 476 deletions
|
|
@ -12,10 +12,12 @@ uniform mat4 u_model;
|
|||
uniform mat4 u_proj;
|
||||
uniform mat4 u_view;
|
||||
uniform vec3 u_skyLightColor;
|
||||
uniform vec3 u_cameraPos;
|
||||
uniform float u_gamma;
|
||||
|
||||
void main(){
|
||||
vec4 viewmodelpos = u_view * u_model * vec4(v_position, 1.0);
|
||||
vec2 pos2d = (u_model * vec4(v_position, 1.0)).xz-u_cameraPos.xz;
|
||||
vec4 viewmodelpos = u_view * u_model * vec4(v_position+vec3(0,pow(length(pos2d)*0.0, 3.0),0), 1.0);
|
||||
a_color = vec4(pow(v_light.rgb, vec3(u_gamma)),1.0f);
|
||||
a_texCoord = v_texCoord;
|
||||
a_color.rgb += u_skyLightColor * v_light.a*0.5;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue