X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fscene%2Fsky%2FCloudShaderGeometry.hxx;h=78f245abb3db3fefd1416721b44786e4f80c7e7c;hb=2805a2d0cc86d03052fcd5da0e648ce5bfd82f7d;hp=cd00da8de7139c8c252563b66e67cd00e83b3f7a;hpb=dca07c5634604c18213d08b688e894de354ea335;p=simgear.git diff --git a/simgear/scene/sky/CloudShaderGeometry.hxx b/simgear/scene/sky/CloudShaderGeometry.hxx old mode 100755 new mode 100644 index cd00da8d..78f245ab --- a/simgear/scene/sky/CloudShaderGeometry.hxx +++ b/simgear/scene/sky/CloudShaderGeometry.hxx @@ -52,8 +52,8 @@ class CloudShaderGeometry : public osg::Drawable setUseDisplayList(false); } - CloudShaderGeometry(int vx, int vy, float width, float height) : - varieties_x(vx), varieties_y(vy) + CloudShaderGeometry(int vx, int vy, float width, float height, float zsc) : + varieties_x(vx), varieties_y(vy), zscale(zsc) { setUseDisplayList(false); float x = width/2.0f; @@ -107,13 +107,14 @@ class CloudShaderGeometry : public osg::Drawable _geometry = geometry; } - void addSprite(const SGVec3f& p, int tx, int ty, float w, float h, - float s, float cull, float cloud_height); + void addSprite(const SGVec3f& p, int tx, int ty, float w, float h, + float s, float cull, float cloud_height); osg::ref_ptr _geometry; int varieties_x; int varieties_y; + float zscale; // Bounding box extents. osg::BoundingBox _bbox;