Log inGet started
Package

looks.module

README.md

looks

The seven looks every Tidewater water and effect comes in (realistic, crystal, painted, cartoon, lowpoly, pixel, toy) as one table of shader parameters. A look is a single setting: every water shader declares the same look_* properties and branches on look_mode (realistic 0, painted 1, cartoon 2, lowpoly 3, pixel 4, crystal 5, toy 6), so switching a lake from realistic to cartoon is Looks.apply(material, "cartoon") (or the look field on tidewater.components.WaterBody). toy is glossy moulded plastic for toy-style games: two candy bands, no ink line, a hard glossy highlight.

Accepts the spellings other kits use: real, toon, painterly, low_poly, pixelart, tropical, clear, plastic, toybox, bathtub.

local Looks = require("tidewater.modules.looks")
Looks.names()                 -- { "realistic", "crystal", "painted", "cartoon", "lowpoly", "pixel", "toy" }
Looks.resolve("toon")         -- "cartoon"
Looks.resolve("bathtub")      -- "toy"
Looks.params("pixel")         -- { look_mode = 4, look_bands = 4, look_pixel = 4, ... }
Looks.apply(materialHandle, "painted")