Skip to content

Commit 880e956

Browse files
committed
grutil: fix ShaderTerrainMesh not working with compressed-textures
1 parent 1b67931 commit 880e956

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

panda/src/grutil/shaderTerrainMesh.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ bool ShaderTerrainMesh::do_check_heightfield() {
207207
void ShaderTerrainMesh::do_init_data_texture() {
208208
_data_texture = new Texture("TerrainDataTexture");
209209
_data_texture->setup_2d_texture(stm_max_chunk_count, stm_max_views, Texture::T_float, Texture::F_rgba32);
210+
_data_texture->set_compression(Texture::CM_off);
210211
_data_texture->set_clear_color(LVector4(0));
211212
_data_texture->clear_image();
212213
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy