We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
heightmap is corner.groundHeight + corner.layerHeight - 2.0 cliffHeightMap is corner.groundHeight
corner.groundHeight + corner.layerHeight - 2.0
corner.groundHeight
and ground.vert.ts
ground.vert.ts
float hL = texture2D(u_heightMap, vec2(base - vec2(1.0, 0.0)) / (u_size)).a; float hR = texture2D(u_heightMap, vec2(base + vec2(1.0, 0.0)) / (u_size)).a; float hD = texture2D(u_heightMap, vec2(base - vec2(0.0, 1.0)) / (u_size)).a; float hU = texture2D(u_heightMap, vec2(base + vec2(0.0, 1.0)) / (u_size)).a; v_normal = normalize(vec3(hL - hR, hD - hU, 2.0));
in hiveWE ground.vert.ts use cliffHeightMap general normal
normal
float hL = texture2D(cliffHeightMap , vec2(base - vec2(1.0, 0.0)) / (u_size)).a; float hR = texture2D(cliffHeightMap , vec2(base + vec2(1.0, 0.0)) / (u_size)).a; float hD = texture2D(cliffHeightMap , vec2(base - vec2(0.0, 1.0)) / (u_size)).a; float hU = texture2D(cliffHeightMap , vec2(base + vec2(0.0, 1.0)) / (u_size)).a; v_normal = normalize(vec3(hL - hR, hD - hU, 2.0));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
heightmap is
corner.groundHeight + corner.layerHeight - 2.0
cliffHeightMap is
corner.groundHeight
and
ground.vert.ts
in hiveWE
ground.vert.ts
use cliffHeightMap generalnormal
The text was updated successfully, but these errors were encountered: