跳转至

ProceduralSky

继承

Sky

简要描述

根据用户输入参数在程序上生成的Sky类型。

描述

ProceduralSky通过定义太阳,天空和地面的过程参数,提供了一种快速创建有效背景的方法。

参数更改后,将在CPU上更新ProceduralSky。

成员

类型 属性名 默认值
Color ground_bottom_color Color( 0.156863, 0.184314, 0.211765, 1 )
float ground_curve 0.02
float ground_energy 1.0
Color ground_horizon_color Color( 0.423529, 0.396078, 0.372549, 1 )
float sky_curve 0.09
float sky_energy 1.0
Color sky_horizon_color Color( 0.839216, 0.917647, 0.980392, 1 )
Color sky_top_color Color( 0.647059, 0.839216, 0.945098, 1 )
float sun_angle_max 100.0
float sun_angle_min 1.0
Color sun_color Color( 1, 1, 1, 1 )
float sun_curve 0.05
float sun_energy 1.0
float sun_latitude 35.0
float sun_longitude 0.0
int texture_size 2

枚举

enum TextureSize: - TEXTURE_SIZE_256 = 0

天空纹理将为256x128。

  • TEXTURE_SIZE_512 = 1

天空纹理将为512x256。

  • TEXTURE_SIZE_1024 = 2

天空纹理将为1024x512。

  • TEXTURE_SIZE_2048 = 3

天空纹理将为2048x1024。

  • TEXTURE_SIZE_4096 = 4

天空纹理将为4096x2048。

  • TEXTURE_SIZE_MAX = 5

表示TextureSize枚举的大小。


成员说明

  • Color ground_bottom_color
Default Color( 0.156863, 0.184314, 0.211765, 1 )
setter set_ground_bottom_color(value)
getter get_ground_bottom_color
  • float ground_curve
Default 0.02
setter set_ground_curve(value)
getter get_ground_curve
  • float ground_energy
Default 1.0
setter set_ground_energy(value)
getter get_ground_energy
  • Color ground_horizon_color
Default Color( 0.423529, 0.396078, 0.372549, 1 )
setter set_ground_horizon_color(value)
getter get_ground_horizon_color
  • float sky_curve
Default 0.09
setter set_sky_curve(value)
getter get_sky_curve
  • float sky_energy
Default 1.0
setter set_sky_energy(value)
getter get_sky_energy
  • Color sky_horizon_color
Default Color( 0.839216, 0.917647, 0.980392, 1 )
setter set_sky_horizon_color(value)
getter get_sky_horizon_color
  • Color sky_top_color
Default Color( 0.647059, 0.839216, 0.945098, 1 )
setter set_sky_top_color(value)
getter get_sky_top_color
  • float sun_angle_max
Default 100.0
setter set_sun_angle_max(value)
getter get_sun_angle_max
  • float sun_angle_min
Default 1.0
setter set_sun_angle_min(value)
getter get_sun_angle_min
  • Color sun_color
Default Color( 1, 1, 1, 1 )
setter set_sun_color(value)
getter get_sun_color
  • float sun_curve
Default 0.05
setter set_sun_curve(value)
getter get_sun_curve
  • float sun_energy
Default 1.0
setter set_sun_energy(value)
getter get_sun_energy
  • float sun_latitude
Default 35.0
setter set_sun_latitude(value)
getter get_sun_latitude
  • float sun_longitude
Default 0.0
setter set_sun_longitude(value)
getter get_sun_longitude
  • int texture_size
Default 2
setter set_texture_size(value)
getter get_texture_size