Ethans Graphics Kit
Collection of graphics effects for the game engine Unity3D(version 5.3.1 specifically).
|
Runtime sky cubemap renderer. More...
Inherits MonoBehaviour.
Public Member Functions | |
void | Reload () |
Reload. More... | |
void | UpdateSettings () |
Update sky settings. More... | |
void | Render () |
Render sky. More... | |
Public Attributes | |
bool | disableCloudRendering = false |
Disable cloud rendering and just display simple and fast sky. More... | |
bool | renderBelowHorizon = false |
Add ground below horizon and don't render sky below that point to save processing cycles. More... | |
Color | skyColor = new Color32(0x45,0x67,0x9F,0xFF) |
Color of the sky in the skybox. More... | |
Color | sunsetColor = new Color(0.9f, 0.4f, 0.5f) |
Color of the sky when the sun is at the horizon. More... | |
Color | nightSkyColor = new Color(0, 0, 0.01f) |
Color of the sky when the sun is below the equator. More... | |
Color | groundColor = new Color(0.2f,0.2f,0.2f) |
Color of the ground in the skybox. More... | |
float | sunSize = 0.1f |
Size of the sun. More... | |
float | sunIntensity = 1.0f |
Intensity of the suns light. More... | |
Color | sunColor = new Color(0.9031f, 0.8687f, 0.7055f) |
Color of the sun in the skybox. More... | |
GameObject | sunDirection = null |
Sun direction object. More... | |
Cubemap | skyEmissiveMap = null |
Emissive cubemap. More... | |
float | emissiveMapIntensity = 1.0f |
Emissive map strength. More... | |
Vector2 | emissiveMapRotation = Vector2.zero |
Emissive cubemap rotation. More... | |
float | cloudiness = 0.5f |
Percentage of cloudiness ranging from 0-1, 1 being completely cloudy. More... | |
Color | cloudColor = new Color(0.95f, 0.95f, 0.95f) |
Color of the clouds in the skybox. More... | |
float | cloudDensity = 0.94f |
Cloud density. More... | |
float | cloudRoughness = 0.25f |
Roughness of the clouds shape. More... | |
float | cloudFluffiness = 0.2f |
Fluffiness of the clouds. More... | |
float | cloudMovementX = 0.0f |
Clouds movement on the X axis. More... | |
float | cloudMovementZ = 0.0f |
Clouds movement on the Z axis. More... | |
float | ambientCloudiness = 0.0f |
Ambient mist. More... | |
Vector3 | cloudScale = new Vector3(1.0f, 1.0f, 1.0f) |
Clouds shape scale. More... | |
float | cloudDeform = 1.0f |
Clouds deformation amount. More... | |
float | yPosition = 0.0f |
Clouds height in the sky. More... | |
int | cubemapFaceResolution = 512 |
Texture resolution of each cubemap face, must be power of two. More... | |
int | renderDelay = 1 |
Delay(in frames) between rendering paths, decreases GPU load by sacrificing render time. More... | |
bool | applyGammaCorrect = true |
Apply gamma correct to cubemap. More... | |
bool | autoCloudMovement = true |
Automatically move clouds, requires autoRender is enabled. More... | |
Vector2 | autoCloudMovementDir = Vector2.one*0.04f |
Cloud movement vector. More... | |
Shader | skyShader |
Shader | cubemapShader |
Runtime sky cubemap renderer.
void EthansGraphicsKit.Sky.SkyRenderer.Reload | ( | ) |
Reload.
void EthansGraphicsKit.Sky.SkyRenderer.Render | ( | ) |
Render sky.
void EthansGraphicsKit.Sky.SkyRenderer.UpdateSettings | ( | ) |
Update sky settings.
float EthansGraphicsKit.Sky.SkyRenderer.ambientCloudiness = 0.0f |
Ambient mist.
bool EthansGraphicsKit.Sky.SkyRenderer.applyGammaCorrect = true |
Apply gamma correct to cubemap.
bool EthansGraphicsKit.Sky.SkyRenderer.autoCloudMovement = true |
Automatically move clouds, requires autoRender is enabled.
Vector2 EthansGraphicsKit.Sky.SkyRenderer.autoCloudMovementDir = Vector2.one*0.04f |
Cloud movement vector.
Color EthansGraphicsKit.Sky.SkyRenderer.cloudColor = new Color(0.95f, 0.95f, 0.95f) |
Color of the clouds in the skybox.
float EthansGraphicsKit.Sky.SkyRenderer.cloudDeform = 1.0f |
Clouds deformation amount.
float EthansGraphicsKit.Sky.SkyRenderer.cloudDensity = 0.94f |
Cloud density.
float EthansGraphicsKit.Sky.SkyRenderer.cloudFluffiness = 0.2f |
Fluffiness of the clouds.
float EthansGraphicsKit.Sky.SkyRenderer.cloudiness = 0.5f |
Percentage of cloudiness ranging from 0-1, 1 being completely cloudy.
float EthansGraphicsKit.Sky.SkyRenderer.cloudMovementX = 0.0f |
Clouds movement on the X axis.
float EthansGraphicsKit.Sky.SkyRenderer.cloudMovementZ = 0.0f |
Clouds movement on the Z axis.
float EthansGraphicsKit.Sky.SkyRenderer.cloudRoughness = 0.25f |
Roughness of the clouds shape.
Vector3 EthansGraphicsKit.Sky.SkyRenderer.cloudScale = new Vector3(1.0f, 1.0f, 1.0f) |
Clouds shape scale.
int EthansGraphicsKit.Sky.SkyRenderer.cubemapFaceResolution = 512 |
Texture resolution of each cubemap face, must be power of two.
Shader EthansGraphicsKit.Sky.SkyRenderer.cubemapShader |
bool EthansGraphicsKit.Sky.SkyRenderer.disableCloudRendering = false |
Disable cloud rendering and just display simple and fast sky.
float EthansGraphicsKit.Sky.SkyRenderer.emissiveMapIntensity = 1.0f |
Emissive map strength.
Vector2 EthansGraphicsKit.Sky.SkyRenderer.emissiveMapRotation = Vector2.zero |
Emissive cubemap rotation.
Color EthansGraphicsKit.Sky.SkyRenderer.groundColor = new Color(0.2f,0.2f,0.2f) |
Color of the ground in the skybox.
Color EthansGraphicsKit.Sky.SkyRenderer.nightSkyColor = new Color(0, 0, 0.01f) |
Color of the sky when the sun is below the equator.
bool EthansGraphicsKit.Sky.SkyRenderer.renderBelowHorizon = false |
Add ground below horizon and don't render sky below that point to save processing cycles.
int EthansGraphicsKit.Sky.SkyRenderer.renderDelay = 1 |
Delay(in frames) between rendering paths, decreases GPU load by sacrificing render time.
Color EthansGraphicsKit.Sky.SkyRenderer.skyColor = new Color32(0x45,0x67,0x9F,0xFF) |
Color of the sky in the skybox.
Cubemap EthansGraphicsKit.Sky.SkyRenderer.skyEmissiveMap = null |
Emissive cubemap.
Shader EthansGraphicsKit.Sky.SkyRenderer.skyShader |
Color EthansGraphicsKit.Sky.SkyRenderer.sunColor = new Color(0.9031f, 0.8687f, 0.7055f) |
Color of the sun in the skybox.
GameObject EthansGraphicsKit.Sky.SkyRenderer.sunDirection = null |
Sun direction object.
float EthansGraphicsKit.Sky.SkyRenderer.sunIntensity = 1.0f |
Intensity of the suns light.
Color EthansGraphicsKit.Sky.SkyRenderer.sunsetColor = new Color(0.9f, 0.4f, 0.5f) |
Color of the sky when the sun is at the horizon.
float EthansGraphicsKit.Sky.SkyRenderer.sunSize = 0.1f |
Size of the sun.
float EthansGraphicsKit.Sky.SkyRenderer.yPosition = 0.0f |
Clouds height in the sky.