Home Game Development heightmap – Quadtree UV mapping texture

heightmap – Quadtree UV mapping texture

0
heightmap – Quadtree UV mapping texture

[ad_1]

I need assistance arising with dynamic uv values (common system) in order that my texture appears to be like steady via all ranges of my quadtree. degree 0-1 works completely, degree 1 subdivision appears to be like nice. however persevering with to degree 2 and onwards is the place I spotted my present technique isn’t going to work. I have to provide you with UV values distinctive to every quad at completely different ranges.

here’s a working instance of my code: https://codepen.io/miguel007/pen/KKeMxQY?editors=0011

line 233 within the createLodChildQuads perform is the place I’m doing the UV modification.

Move the pink participant to activate Quadtree ranges.
Control the pink participant (W,A,S,E,R,F)

degree 0

enter image description here

degree 1

enter image description here

degree 2

enter image description here

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here