25 MutexHolder holder(_lock);
26 _heightfield_tex = heightfield;
37 MutexHolder holder(_lock);
38 return _heightfield_tex;
59 MutexHolder holder(_lock);
60 _chunk_size = chunk_size;
69 MutexHolder holder(_lock);
88 MutexHolder holder(_lock);
89 _generate_patches = generate_patches;
100 MutexHolder holder(_lock);
101 return _generate_patches;
116 MutexHolder holder(_lock);
117 _target_triangle_width = target_triangle_width;
128 MutexHolder holder(_lock);
129 return _target_triangle_width;
142 MutexHolder holder(_lock);
143 _update_enabled = update_enabled;
154 MutexHolder holder(_lock);
155 return _update_enabled;
163INLINE
void ShaderTerrainMesh::Chunk::clear_children() {
164 for (
size_t i = 0; i < 4; ++i) {
166 children[i] =
nullptr;
174INLINE ShaderTerrainMesh::Chunk::Chunk() {
175 for (
size_t i = 0; i < 4; ++i)
176 children[i] =
nullptr;
183INLINE ShaderTerrainMesh::Chunk::~Chunk() {
get_heightfield
Returns the heightfield.
set_chunk_size
Sets the chunk size.
set_heightfield
Sets the heightfield texture.
LPoint3 uv_to_world(const LTexCoord &coord) const
Transforms a texture coordinate to world space.
get_chunk_size
Returns the chunk size.
get_target_triangle_width
Returns the target triangle width.
set_target_triangle_width
Sets the desired triangle width.
get_update_enabled
Returns whether the terrain is getting updated.
set_update_enabled
Sets whether to enable terrain updates.
set_generate_patches
Sets whether to generate patches.
get_generate_patches
Returns whether to generate patches.
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...