28 _has_undist_lut =
false;
42 _has_undist_lut = undist_lut.is_valid();
43 _undist_lut = undist_lut;
52 return _has_undist_lut;
71 _texcoord_name = InternalName::get_texcoord_name(texcoord_name);
81 return _texcoord_name->get_name();
96 _invert_uvs = invert_uvs;
119 _texcoord_3d = texcoord_3d;
144 _vignette_on = vignette_on;
166 _vignette_color = vignette_color;
176 return _vignette_color;
187 _frame_color = frame_color;
207 _auto_recompute = auto_recompute;
218 return _auto_recompute;
const LColor & get_frame_color() const
Returns the color the screen will be painted at the portions outside of the lens' frustum.
const PfmFile & get_undist_lut() const
Returns the distortion lookup table provided via set_undist_lut(), if any.
bool get_texcoord_3d() const
See set_texcoord_3d().
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.
const NodePath & get_projector() const
Returns the NodePath to the LensNode that is to serve as the projector for this screen,...
void set_vignette_on(bool vignette_on)
Specifies whether vertex-based vignetting should be on.
bool get_invert_uvs() const
Returns whether this screen is compensating for a graphics driver inverting the framebuffer image.
Defines a pfm file, a 2-d table of floating-point numbers, either 3-component or 1-component,...
bool has_undist_lut() const
Returns true if a valid distortion lookup table was provided via set_undist_lut(),...
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....
const LColor & get_vignette_color() const
Returns the color the screen will be painted at the portions outside of the lens' frustum.
void set_texcoord_name(const std::string &texcoord_name)
Specifies the name of the texture coordinates that are generated by this particular ProjectionScreen.
const UpdateSeq & get_last_screen() const
Returns an UpdateSeq corresponding to the last time a screen mesh was generated for the ProjectionScr...
bool get_vignette_on() const
Returns true if vertex-based vignetting is on, false otherwise.
void set_undist_lut(const PfmFile &undist_lut)
Applies a distortion lookup table to the projector.
std::string get_texcoord_name() const
Returns the name of the texture coordinates that will be generated by this particular ProjectionScree...
This is a sequence number that increments monotonically.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
bool get_auto_recompute() const
Returns the auto_recompute flag.