Skip to content
Permalink
Browse files

grutil: fix ShaderTerrainMesh not working with compressed-textures

  • Loading branch information
rdb committed Mar 16, 2020
1 parent 1b67931 commit 880e9564299b67b5f880d2b689be80a9eb4a4319
Showing with 1 addition and 0 deletions.
  1. +1 −0 panda/src/grutil/shaderTerrainMesh.cxx
@@ -207,6 +207,7 @@ bool ShaderTerrainMesh::do_check_heightfield() {
void ShaderTerrainMesh::do_init_data_texture() {
_data_texture = new Texture("TerrainDataTexture");
_data_texture->setup_2d_texture(stm_max_chunk_count, stm_max_views, Texture::T_float, Texture::F_rgba32);
_data_texture->set_compression(Texture::CM_off);
_data_texture->set_clear_color(LVector4(0));
_data_texture->clear_image();
}

0 comments on commit 880e956

Please sign in to comment.
You can’t perform that action at this time.