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);
75 INLINE std::ostream &operator << (std::ostream &out,
const MayaShader &shader) {
void collect_maps()
Recalculates the all_maps list.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
MayaShaderColorDef * get_color_def(size_t idx=0) const
This is part of the deprecated codepath.
A base class for all things which can have a name.
This defines the various attributes that Maya may associate with the "color" channel for a particular...
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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Corresponds to a single "shader" in Maya.
MayaShader(MObject engine, bool legacy_shader)
Reads the Maya "shading engine" to determine the relevant shader properties.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void bind_uvsets(MayaFileToUVSetMap &map)
Assigns the uvset_name of each MayaShaderColorDef using the given file-to- uvset map.