18 #include "pandatoolbase.h" 19 #include "mayaShaderColorDef.h" 37 MayaShader(MObject engine,
bool legacy_shader);
40 void output(ostream &out)
const;
41 void write(ostream &out)
const;
44 bool find_textures_modern(MObject shader);
45 bool find_textures_legacy(MObject shader);
67 void calculate_pairings();
71 string get_file_prefix(
const string &fn);
80 INLINE ostream &operator << (ostream &out,
const MayaShader &shader) {
void collect_maps()
Recalculates the all_maps list.
This is the base class for all three-component vectors and points.
This is our own Panda specialization on the default STL vector.
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...
Corresponds to a single "shader" in Maya.
This is the base class for all three-component vectors and points.
MayaShader(MObject engine, bool legacy_shader)
Reads the Maya "shading engine" to determine the relevant shader properties.
void bind_uvsets(MayaFileToUVSetMap &map)
Assigns the uvset_name of each MayaShaderColorDef using the given file-to-uvset map.