Env skypaint

From Valve Developer Community
Revision as of 12:57, 14 November 2020 by KacperZ45 (talk | contribs) (Created page with "{{cleanup}} {{stub}} left|link= <code>env_skypaint</code> is a point entity available in {{GMOD}}Garry's Mod. It allows to create custom dy...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.

Stub

This article or section is a stub. You can help by expanding it.


Env skypaint.png

env_skypaint is a point entity available in Garry's ModGarry's Mod. It allows to create custom dynamic skybox.

gm_construct sky
gm_flatgrass sky

It can be overridden by Sky Editor (edit_sky) entity spawned by player in game.

Icon-Important.pngImportant:Set skybox name to painted to get this entity to work.

Sky creation

  1. Place env_skypaint somewhere in your map
  2. Change sky name to painted
  3. Compile and run map and spawn Sky Editor
  4. Go to sky editor properties and edit the values as you wish.
  5. When your done, just copy values to env_skypaint
  6. Compile map again. DONE

env_skypaint example values

Map Sky Top Color Sky Bottom Color Sky Fade Bias Sun Size Sun Normal Sun Position Method Sun Color Dusk Scale Dusk Intensity Dusk Color Draw Stars Star Texture Star Scale Star Fade Star Speed HDR Scale
gm_construct 0.22 0.51 1 0.919 0.929 0.992 0.1 0 0 0 1 Automatic 0 0 0 0.5 2 1 1 1 Yes skybox/clouds 2 0.5 0.03 0.56
gm_flatgrass 0 0.6 1 0.9 0.95 1 0.5 0 0 0 1 Automatic 0 0 0 0 0 0 0 0 Yes skybox/clouds 2 0.5 0.02 0.60

Keyvalues

Name ([todo internal name (i)]) <targetname>
Entity's name
Sky Top Color ([todo internal name (i)]) <topcolor>
Sky top color
Sky Bottom Color ([todo internal name (i)]) <bottomcolor>
Sky horizon color
Sky Fade Bias ([todo internal name (i)]) <fadebias>
Tansision between sky colors (1.0 is even)
Sun Size ([todo internal name (i)]) <sunsize>
Size of sun glow overlay on sky.
Warning.pngWarning:not to be confused with env_sun
Sun Normal ([todo internal name (i)]) <sunnormal>
Sun Position Method ([todo internal name (i)]) <sunsize>
Custom or Automatic(Uses env_sun values)
Sun Color ([todo internal name (i)]) <suncolor>
Color of the sun overlay.
Dusk Scale ([todo internal name (i)]) <duskscale>
Size of dusk at horizon.
Dusk Intensity ([todo internal name (i)]) <duskintensity>
How powerful the dusk effect is.
Dusk Color ([todo internal name (i)]) <duskcolor>
Color of the dusk.
Draw Stars ([todo internal name (i)]) <drawstars>
YesorNo. Draws a specified texture as overlay.
Note.pngNote:On sky it replaces black color in texture with alpha.
Stars Texture ([todo internal name (i)]) <starstexture>
Default: skybox/starfield
Stars Scale ([todo internal name (i)]) <starsscale>
Scale of overlay texture.
Star Fade ([todo internal name (i)]) <starsfade>
Fade the star texture towards the horizon.
Stars Speed ([todo internal name (i)]) <starsspeed>
How fast the star texture should scroll across the sky.
HDR Scale ([todo internal name (i)]) <hdrscale>
When rendering your skybox in HDR mode, output will be scaled by this amount.

Input

Kill
Removes this entity from the world.
KillHierarchy
Removes this entity and its children from the world.
Note.pngNote:Entities already remove orphaned children upon being removed, but this input removes all children on the same frame, being marginally faster than Kill.
AddOutput <stringRedirectInput/string>
Adds a keyvalue/output to this entity. It can be potentially very dangerous, use with care.
KV Format: <key> <value>
I/O Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>

Output

OnUser1 to OnUser4
These outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.