Skip to content

Commit

Permalink
Removed specific mentions of OpenGL
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Nov 27, 2024
1 parent 7f4759e commit 5496725
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/manuals/render.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ The render pipeline controls what to render, when to render it and also where to

The render file contains a reference to the current render script as well as custom materials that should be made available in the render script (use with [`render.enable_material()`](/ref/render/#render.enable_material))

At the heart of the rendering pipeline is the _render script_. This is a Lua script with the functions `init()`, `update()` and `on_message()` and it is primarily used to interact with the underlying OpenGL rendering API. The render script has a special place in the lifecycle of your game. Details can be found in the [Application lifecycle documentation](/manuals/application-lifecycle).
At the heart of the rendering pipeline is the _render script_. This is a Lua script with the functions `init()`, `update()` and `on_message()` and it is primarily used to interact with the underlying graphics API. The render script has a special place in the lifecycle of your game. Details can be found in the [Application lifecycle documentation](/manuals/application-lifecycle).

In the "Builtins" folder of your projects you can find the default render resource ("default.render") and the default render script ("default.render_script").

![Builtin render](images/render/builtin.png){srcset="images/render/[email protected] 2x"}

To set up a custom renderer:

1. Copy the files "default.render" and "default.render_script" to a location in your project hierarchy. You can, of course, create a render script from scratch but it is a good idea to start with a copy of the default script, especially if you are new to Defold and/or OpenGL ES rendering.
1. Copy the files "default.render" and "default.render_script" to a location in your project hierarchy. You can, of course, create a render script from scratch but it is a good idea to start with a copy of the default script, especially if you are new to Defold and/or graphics programming.

2. Edit your copy of the "default.render" file and change the *Script* property to refer to your copy of the render script.

Expand Down

0 comments on commit 5496725

Please sign in to comment.