Changeset 453 for trunk/src/engine


Ignore:
Timestamp:
07/30/15 20:49:02 (10 years ago)
Author:
epyon
Message:
  • added math/degrees and radians
  • added math/geometric - not used yet due to dual template parameters of vectors
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/engine/particle_engine.cc

    r452 r453  
    749749                                        if ( edata.angle > 0.0f )
    750750                                        {
    751                                                 float emission_angle = glm::radians( edata.angle );
     751                                                float emission_angle = math::radians( edata.angle );
    752752                                                float cos_theta = r.frange( math::cos( emission_angle ), 1.0f );
    753753                                                float sin_theta = math::sqrt(1.0f - cos_theta * cos_theta );
Note: See TracChangeset for help on using the changeset viewer.