Skip to content

Akabenko/Gmod-Spherical-Sky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spherical sky for Map creators

Place env_sky.fgd to Garrysmod/bin/. Then goto Hammer++, Tools -> Options -> Game Data files: -> Add env_sky.fgd. image

Params of env_sky:

  • Static Sky Textue (staticskytexpath) — Set static sky texture which will be shown if static mode enabled.
  • Sky Brightness Scale (brightness) — Defines how bright the sky is.

Spherical sky for Addon creators

You can add your sky texture to this addon, using config hook:

hook.Add("ConfigSphericalSky", "MySkyConfig", function()
	return {
		"sky/qwantani_dusk_2_puresky_4k";
		-- add your name skybox here
	}
end)

Config your Sphere sky texture

Use a texture flags: Clamp T, Clamp S, No MipMaps, No Lod.
Save Sky texture as RGB888 or RGBA16161616/RGBA16161616F texture. Not use DXT1 or DXT5 for sky texture. This cause banding.
You can save HDR textures on Source, using MareTF VTF Editor.

Addon features

  • Both full size sphere support and half size skydome auto support.
  • Water reflection support.

Addon link to workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=3731958150
Supported sky textures addons/games:


UV calculations taken from Dmitrex white paper. Icon of env_sky taken from Military Conflict: Vietnam game, as a few params of this entity.

Links:

About

Spherical sky addon for Garry's mod with entity env_sky for mappers on hammer. Also here Military Conflict: Vietnam maps support. And included sky patches of some skydome addons from workshop. UV calctulation of shader based of DmitRex white paper.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors