Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 26, 2012, 3:58:05 PM (11 years ago)
Author:
davidsa
Message:

WIP: fixing max pixel calculation and size scaling of the billboards

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/shaders/src/orxonox/graphics/LensFlare.h

    r9464 r9466  
    135135            void createBillboards();
    136136           
    137             void updateBillboardStates(Vector3& viewDirection, unsigned int dimension, bool isLightVisible);
     137            void updateBillboardStates(Vector3& viewDirection, float dimension, bool isLightVisible);
    138138           
    139139            void updateBillboardAlphas(float alpha);
    140140           
    141             unsigned int getPointCount(unsigned int dimension) const;
     141            unsigned int getPointCount(float dimension) const;
    142142           
    143143            Billboard* occlusionBillboard_;//!< this is a transparent billboard used solely for the Hardware Occlusion Query
    144             unsigned int cameraDistance_;//!< current distance of the lensflare center from the camera
     144            float cameraDistance_;//!< current distance of the lensflare center from the camera
    145145            float scale_;//!< this factor is used to scale the billboard to the desired size
    146146            bool fadeOnViewBorder_;//!< should the effect fade out on the border of the view?
Note: See TracChangeset for help on using the changeset viewer.