15 #ifndef MAYASHADERCOLORDEF_H
16 #define MAYASHADERCOLORDEF_H
18 #include "pandatoolbase.h"
44 string strip_prefix(
string full_name);
51 void write(ostream &out)
const;
83 BlendType _blend_type;
84 ProjectionType _projection_type;
114 MObject *_color_object;
117 static void find_textures_modern(
const string &shadername,
MayaShaderColorList &list, MPlug inplug,
bool is_alpha);
118 void find_textures_legacy(
MayaShader *shader, MObject
color,
bool trans=
false);
120 void set_projection_type(
const string &type);
152 bool _has_flat_color;
154 bool _has_alpha_channel;
This is a 4-by-4 transform matrix.
string get_panda_uvset_name()
Maya's default uvset name is "map1".
This is the base class for all three-component vectors and points.
This is a two-component point in space.
LMatrix3d compute_texture_matrix() const
Returns a texture matrix corresponding to the texture transforms indicated by the shader...
LTexCoordd project_uv(const LPoint3d &pos, const LPoint3d &ref_point) const
If the shader has a projection (has_projection() returns true), this computes the appropriate UV corr...
This is a 3-by-3 transform matrix.
The name of a file, such as a texture file or an Egg file.
This defines the various attributes that Maya may associate with the "color" channel for a particular...
Corresponds to a single "shader" in Maya.
bool has_projection() const
Returns true if the shader has a projection in effect.
This is the base class for all three-component vectors and points.
This is a two-component vector offset.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
bool reset_maya_texture(const Filename &texture)
Changes the texture filename stored in the Maya file for this particular shader.