Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBottinator22 <59987380+Bottinator22@users.noreply.github.com>2025-02-08 13:00:19 -0800
committerGitHub <noreply@github.com>2025-02-08 13:00:19 -0800
commit36599a57280fca8c69a195bd8b979ff09abd1a5f (patch)
treef8e1f3592ca18722e489b7f6f3cb5a635d036556 /doc
parente8ee55d8b0b73aca8e08a6640724d831a8ecb853 (diff)
starting on reorganizing oSB docs
Diffstat (limited to 'doc')
-rw-r--r--doc/lua/openstarbound/renderer.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/doc/lua/openstarbound/renderer.md b/doc/lua/openstarbound/renderer.md
new file mode 100644
index 0000000..5678085
--- /dev/null
+++ b/doc/lua/openstarbound/renderer.md
@@ -0,0 +1,37 @@
+
+# Renderer
+
+The new renderer table is accessible from almost every clientside script and allows configuring shaders.
+
+---
+
+#### `void` renderer.setPostProcessGroupEnabled(String group, bool enabled, [bool save])
+
+Enables or disables a post process shader group. If save is true, this change is saved to configuration as well.
+
+---
+
+#### `bool` renderer.postProcessGroupEnabled(String group)
+
+Returns true if the specified post process group is enabled.
+
+---
+
+#### `Json` renderer.postProcessGroups()
+
+Returns every post process group. Identical to grabbing them from client.config with root.assetJson.
+
+---
+
+#### `Json` renderer.setEffectParameter(String effectName, String parameterName, RenderEffectParameter value)
+
+Sets the specified scriptable parameter of the specified shader effect to the provided value.
+This is accessed from the shader as a uniform and must be defined in the effect's configuration.
+
+---
+
+#### `RenderEffectParameter` renderer.getEffectParameter(String effectName, String parameterName)
+
+Returns the specified scriptable parameter of the specified shader effect.
+
+---