32 MayaShader(MObject engine,
bool legacy_shader);
35 void output(std::ostream &out)
const;
36 void write(std::ostream &out)
const;
39 bool find_textures_modern(MObject shader);
40 bool find_textures_legacy(MObject shader);
62 void calculate_pairings();
66 std::string get_file_prefix(
const std::string &fn);
75INLINE std::ostream &operator << (std::ostream &out,
const MayaShader &shader) {
This defines the various attributes that Maya may associate with the "color" channel for a particular...
Corresponds to a single "shader" in Maya.
MayaShader(MObject engine, bool legacy_shader)
Reads the Maya "shading engine" to determine the relevant shader properties.
void collect_maps()
Recalculates the all_maps list.
LColor get_rgba(size_t idx=0) const
Returns the overall color of the shader as a single-precision rgba value, where the alpha component r...
MayaShaderColorDef * get_color_def(size_t idx=0) const
This is part of the deprecated codepath.
void bind_uvsets(MayaFileToUVSetMap &map)
Assigns the uvset_name of each MayaShaderColorDef using the given file-to- uvset map.
A base class for all things which can have a name.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.