OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::Sky Class Reference

天空レンダリングエンジン More...

#include <Sky.hpp>

Public Member Functions

SIV3D_NODISCARD_CXX20 Sky (double sphereRadius=8000.0)
 天空レンダリングエンジンを作成します。 More...
 
void draw (double exposure=1.0) const
 天空をレンダリングします。 More...
 

Public Attributes

ColorF zenithColor { 0.15, 0.24, 0.56 }
 空のてっぺんの色(リニアカラー) More...
 
ColorF horizonColor { 0.3, 0.3, 0.4 }
 地平線の色(リニアカラー) More...
 
ColorF cloudColor { 1.0, 1.0, 1.0 }
 雲の色(リニアカラー) More...
 
double cloudTime = 0.0
 雲の移動に使う基準時刻 More...
 
double cloudiness = 0.2
 雲量(快晴 [0.0, 1.0] 曇天) More...
 
double cloudScale = 0.5
 雲のスケール More...
 
double cloudPlaneHeight = 1000.0
 雲の底面の高度 (m) More...
 
double cloudOrientation = 0_deg
 雲が流れる方向(北 0_deg, ... 東 90_deg, ...) More...
 
double fogHeightSky = 0.0
 フォグの強さ More...
 
double starBrightness = 0.0
 星の可視レベル [0.0, 1.0] More...
 
double starBrightnessFactor = 1.0
 星の光の強さ [0.0, 1.0] More...
 
double starSaturation = 0.6
 星の色味の強さ [0.0, 1.0] More...
 
Vec3 starRotationAxis = Vec3{ 0, 0.5, 1 }.normalized()
 天球の回転の軸 More...
 
double starTime = 0.0
 星の移動に使う基準時刻 More...
 
Vec2 starOffset { 0.123, 0.456 }
 星のパターンを変えるオフセット More...
 
bool sunEnabled = true
 太陽の描画を有効にするか More...
 
bool cloudsEnabled = true
 雲の描画を有効にするか More...
 
bool cloudsLightingEnabled = true
 太陽の方向に基づく雲のライティングを有効にするか More...
 

Detailed Description

天空レンダリングエンジン

Constructor & Destructor Documentation

◆ Sky()

SIV3D_NODISCARD_CXX20 s3d::Sky::Sky ( double  sphereRadius = 8000.0)
explicit

天空レンダリングエンジンを作成します。

Parameters
sphereRadiusスカイスフィアの半径 (m)

Member Function Documentation

◆ draw()

void s3d::Sky::draw ( double  exposure = 1.0) const

天空をレンダリングします。

Parameters
exposure露光スケール
Remarks
ピクセルシェーダの定数バッファ slot4 を上書きします。

Member Data Documentation

◆ cloudColor

ColorF s3d::Sky::cloudColor { 1.0, 1.0, 1.0 }

雲の色(リニアカラー)

◆ cloudiness

double s3d::Sky::cloudiness = 0.2

雲量(快晴 [0.0, 1.0] 曇天)

◆ cloudOrientation

double s3d::Sky::cloudOrientation = 0_deg

雲が流れる方向(北 0_deg, ... 東 90_deg, ...)

◆ cloudPlaneHeight

double s3d::Sky::cloudPlaneHeight = 1000.0

雲の底面の高度 (m)

◆ cloudScale

double s3d::Sky::cloudScale = 0.5

雲のスケール

◆ cloudsEnabled

bool s3d::Sky::cloudsEnabled = true

雲の描画を有効にするか

◆ cloudsLightingEnabled

bool s3d::Sky::cloudsLightingEnabled = true

太陽の方向に基づく雲のライティングを有効にするか

◆ cloudTime

double s3d::Sky::cloudTime = 0.0

雲の移動に使う基準時刻

◆ fogHeightSky

double s3d::Sky::fogHeightSky = 0.0

フォグの強さ

◆ horizonColor

ColorF s3d::Sky::horizonColor { 0.3, 0.3, 0.4 }

地平線の色(リニアカラー)

◆ starBrightness

double s3d::Sky::starBrightness = 0.0

星の可視レベル [0.0, 1.0]

◆ starBrightnessFactor

double s3d::Sky::starBrightnessFactor = 1.0

星の光の強さ [0.0, 1.0]

◆ starOffset

Vec2 s3d::Sky::starOffset { 0.123, 0.456 }

星のパターンを変えるオフセット

◆ starRotationAxis

Vec3 s3d::Sky::starRotationAxis = Vec3{ 0, 0.5, 1 }.normalized()

天球の回転の軸

◆ starSaturation

double s3d::Sky::starSaturation = 0.6

星の色味の強さ [0.0, 1.0]

◆ starTime

double s3d::Sky::starTime = 0.0

星の移動に使う基準時刻

◆ sunEnabled

bool s3d::Sky::sunEnabled = true

太陽の描画を有効にするか

◆ zenithColor

ColorF s3d::Sky::zenithColor { 0.15, 0.24, 0.56 }

空のてっぺんの色(リニアカラー)


The documentation for this class was generated from the following file: