🤠
cedoscript
  • Introduction
  • Documentation
    • Packets
    • Setting Command
    • Java Imports
    • Examples
      • Creating a Pack
      • Custom Block Animation
      • Bhop
      • Setting Creation
      • Post Notification
      • Gradient Round Rectangle
      • Applying a gradient
      • Simulate a command
  • api
    • Events
    • Settings
    • Objects
      • EntityLivingBase
      • ItemStack
      • Player Abilities
      • Color
      • TimerUtil
      • Continual Animation
      • ShaderUtil
      • FrameBuffer
      • Rainbow
      • Drag
      • Pair
      • Module
  • Bindings
    • Client
    • Player
    • Packet
    • Action
    • Facing
    • Potion
    • Notification
    • Render
    • Stats
    • Font
    • User
    • World
Powered by GitBook
On this page
  • How to create
  • Functions
  • init
  • unload
  • setUniformf
  • setUniformi
  • drawQuads

Was this helpful?

  1. api
  2. Objects

ShaderUtil

How to create

var shaderUtil = render.createShaderUtil(getFragSource())

You must input a String of the Fragment shader

Functions

init

shaderUtil.init()

Initializes the shader

unload

shaderUtil.unload()

Unloads the shader

setUniformf

shaderUtil.setUniformf(name args...)

Sets specified uniform to the specified arguments

Name
Type
Description

name

String

Name of the uniform

args

Number

These can be up to 4 arguments of non integer numbers

setUniformi

shaderUtil.setUniformf(name args...)
Name
Type
Description

name

String

Name of the uniform

args

Number

These can be up to 2 integer arguments

drawQuads

shaderUtil.drawQuads()
//OR
shaderUtil.drawQuads(x, y, width, height)

You can draw over the whole screen or in a specified position and size

Optional

Name
Type
Description

x

Number

X position of the quads

y

Number

Y position of the quads

width

Number

Width of the quads

height

Number

Height of the quads

PreviousContinual AnimationNextFrameBuffer

Last updated 2 years ago

Was this helpful?