19 return _is_valid && !_st_vertex_attribs.empty();
49 return _splat_layers.size();
57 nassertr(n >= 0 && n < (
int)_splat_layers.size(), _splat_layers[0]._filename);
58 return _splat_layers[n]._filename;
67 nassertr(n >= 0 && n < (
int)_splat_layers.size(), 0.0f);
68 return _splat_layers[n]._tiling;
77 nassertr(n >= 0 && n < (
int)_splat_layers.size(), _splat_layers[0]._color);
78 return LVecBase4(_splat_layers[n]._color);
88 return _vertex_format;
PN_stdfloat get_max_height() const
Returns the largest height value that might be returned by get_height().
const Filename & get_normal_map() const
Returns the normal map that should be applied to the terrain.
bool is_valid() const
Returns true if the terrain data is well-defined and ready to use.
const GeomVertexFormat * get_vertex_format()
Returns the vertex format of the vertex array that is supported by this terrain data.
The name of a file, such as a texture file or an Egg file.
LColor get_splat_layer_color(int n) const
Returns the overall color of the nth splat layer.
PN_stdfloat get_min_height() const
Returns the smallest height value that might be returned by get_height().
const Filename & get_splat_layer(int n) const
Returns the nth splat layer that is to be applied to the terrain.
int get_num_splat_layers() const
Returns the number of splat layers that are to be applied to the terrain.
const Filename & get_splat_map() const
Returns the splat map that should be applied to the terrain.
PN_stdfloat get_splat_layer_tiling(int n) const
Returns the tiling value of the nth splat layer.