Skip to content

Instantly share code, notes, and snippets.

View alfie-3's full-sized avatar
๐Ÿ˜ˆ

Alfie Elliott alfie-3

๐Ÿ˜ˆ
View GitHub Profile
@khadzhynov
khadzhynov / SkyboxCubemapHorizonHSV.shader
Created April 14, 2021 17:10
Cubemap shader with adjustable vertical Scale/Offset and HSV color controls.
/*
Cubemap shader with adjustable vertical Scale/Offset and HSV color controls.
Creation goal was to enable user to create several casually-looking skyboxes in different colors from single image, drawn in 2d editing software.
Features:
- Doesn't requires 6-sides cubemap, or spherical projection: texture can be easily drawn in any 2d image editing software;
- "V Offset" option allows to move horizon line up and down with ease;
- "V Scale" allows to stretch texture;
- Rotation feature sets horizontal offset (as in original shader).
- HSV controls allows to change colors.