Panda3D
Functions
spotlight.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "spotlight.h"
#include "graphicsStateGuardianBase.h"
#include "bamWriter.h"
#include "bamReader.h"
#include "datagram.h"
#include "datagramIterator.h"
#include "colorAttrib.h"
#include "texture.h"
#include "config_pgraph.h"
#include "pnmImage.h"

Go to the source code of this file.

Functions

 CPT (RenderState) Spotlight
 Returns a RenderState for rendering the spotlight visualization. More...
 
 PT (Texture) Spotlight
 Returns a newly-generated Texture that renders a circular spot image as might be cast from the spotlight. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
mike
Date
1997-01-09

Definition in file spotlight.cxx.

Function Documentation

◆ CPT()

CPT ( RenderState  )

Returns a RenderState for rendering the spotlight visualization.

Definition at line 232 of file spotlight.cxx.

◆ PT()

PT ( Texture  )

Returns a newly-generated Texture that renders a circular spot image as might be cast from the spotlight.

This may be projected onto target geometry (for instance, via NodePath::project_texture()) instead of actually enabling the light itself, as a cheesy way to make a high- resolution spot appear on the geometry.

pixel_width specifies the height and width of the new texture in pixels, full_radius is a value in the range 0..1 that indicates the relative size of the fully bright center spot, and fg and bg are the colors of the interior and exterior of the spot, respectively.

Definition at line 161 of file spotlight.cxx.

References PNMImage::render_spot().