1 Star 5 Fork 1

sinriv / irrSky

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

irrSky

realtime volumetric clouds based on irrlicht
基于irrlicht的体积云
此项目源自Smoothly,部分头文件、着色器的路径可能有错,如有报错,请自行修改

效果

img

使用方法

    smoothly::cloud C(driver,scene);

然后在每一帧调用C.renderSky()即可

设置参数

在运行时,你可以设置下面的参数来控制云的形态、分布

        irr::f32 cloudThre, // 云量,越大云越少
                 cloudy,    // 阴天,设置天空背景颜色,越大越接近阴天
                 lightness; // 亮度,用于模拟夜晚

这些参数用于设置发光天体(太阳或者月亮)

        irr::core::vector3df astronomical,//发光天体位置
                             astrLight,   //天体亮度
                             astrColor;   //天体颜色
        float                astrAtomScat,//大气层散射
                             astrTheta;   //天体在视野中夹角(即天体大小)

硬件要求

intel i5的核显即可。经过我的优化,在核显上能达到40fps+

MIT License Copyright (c) 2020 cgoxopx Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于irrlicht的实时体积云 展开 收起
C++ 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/sinriv/irrSky.git
git@gitee.com:sinriv/irrSky.git
sinriv
irrSky
irrSky
master

搜索帮助