8/10/2023 0 Comments Toontown offline v1This should only really be used in a RENDER shader, in which case this should pretty much always be in the filters/ folder (e.g. This is the file path to the vertex shader file. If you are using a custom shader, this should pretty much always be in the filters/ folder ( e.g. This is the file path to the fragment shader file. If there is a conflict, the user can always just use the unique identifier instead. These SHOULD be unique, but in the case of a conflict, the command will pick whichever shader was registered first. This is a list of simple convenient words used during the ~filter command to save time. The user can also use this identifier in the ~filter command. This ensures two similar shaders can always be uniquely accessed with no conflicts. This identifier should always be formatted as namespace:filtername, where namespace can be whatever you want, such as your name. This MUST be unique or the shader will REFUSE to register. This is used internally by the game to identify each filter. This is a UNIQUE identifier for the shader. This is currently just used in the return message of the ~filter command, and is not required to be unique. "vertex" : "phase_3/shaders/tt_sha_post_generic.vert ", An example Post Process filter JSON file is shown below:.Each JSON file needs specific data about the shader, and MUST be formatted correctly!.This file can be placed alongside your shader vertex and fragment files in the filters folder in your Toontown Offline game directory (which can be accessed by pressing the button on the launcher. The most common other input (which is not required) is the uniform float osg_FrameTime which, as described by Panda3D's manual, "reports the frame time of the current frame, for animations.".Screen resolution ( uniform vec2 resolution). Depth texture ( uniform sampler2D depth_texture).Color texture ( uniform sampler2D color_texture).All post process fragment shaders are required to have the following inputs, even if they aren't used:.Currently, these are required to be specified as inputs, even if one of those is not going to be used. As of Toontown Offline v1.0.5.1, post process shaders have access to the color and depth buffers.In Toontown Offline v1.0.5.1, the Underwater filter uses this method.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |