37 _has_undist_lut =
false;
55 _has_undist_lut = undist_lut.is_valid();
56 _undist_lut = undist_lut;
67 return _has_undist_lut;
92 _texcoord_name = InternalName::get_texcoord_name(texcoord_name);
105 return _texcoord_name->get_name();
124 _invert_uvs = invert_uvs;
153 _texcoord_3d = texcoord_3d;
184 _vignette_on = vignette_on;
211 _vignette_color = vignette_color;
224 return _vignette_color;
238 _frame_color = frame_color;
265 _auto_recompute = auto_recompute;
280 return _auto_recompute;
bool get_texcoord_3d() const
See set_texcoord_3d().
bool has_undist_lut() const
Returns true if a valid distortion lookup table was provided via set_undist_lut(), false otherwise.
const LColor & get_frame_color() const
Returns the color the screen will be painted at the portions outside of the lens' frustum...
void set_texcoord_name(const string &texcoord_name)
Specifies the name of the texture coordinates that are generated by this particular ProjectionScreen...
const PfmFile & get_undist_lut() const
Returns the distortion lookup table provided via set_undist_lut(), if any.
void set_texcoord_3d(bool texcoord_3d)
Set this true to force 3-D texture coordinates to be created for the geometry.
void set_invert_uvs(bool invert_uvs)
Some OpenGL graphics drivers are known to invert the framebuffer image when they copy it to texture...
void clear_undist_lut()
Removes the distortion lookup table from the projector, if specified.
void set_vignette_on(bool vignette_on)
Specifies whether vertex-based vignetting should be on.
bool get_vignette_on() const
Returns true if vertex-based vignetting is on, false otherwise.
string get_texcoord_name() const
Returns the name of the texture coordinates that will be generated by this particular ProjectionScree...
Defines a pfm file, a 2-d table of floating-point numbers, either 3-component or 1-component, or with a special extension, 2- or 4-component.
const UpdateSeq & get_last_screen() const
Returns an UpdateSeq corresponding to the last time a screen mesh was generated for the ProjectionScr...
void set_auto_recompute(bool auto_recompute)
Sets the auto_recompute flag.
void set_frame_color(const LColor &frame_color)
Specifies the color the screen will be painted at the portions outside of the lens' frustum; i...
void set_vignette_color(const LColor &vignette_color)
Specifies the color the screen will be painted at the portions outside of the lens' frustum; i...
This is the base class for all three-component vectors and points.
const LColor & get_vignette_color() const
Returns the color the screen will be painted at the portions outside of the lens' frustum...
bool get_invert_uvs() const
Returns whether this screen is compensating for a graphics driver inverting the framebuffer image...
bool get_auto_recompute() const
Returns the auto_recompute flag.
void set_undist_lut(const PfmFile &undist_lut)
Applies a distortion lookup table to the projector.
This is a sequence number that increments monotonically.
const NodePath & get_projector() const
Returns the NodePath to the LensNode that is to serve as the projector for this screen, or empty if no projector is associated.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...