Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pass_1: {
- uniforms: {
- view: camera.view
- projection: camera.projection
- }
- id_tex: {
- format: GL_R8UI
- size: {width, height}
- }
- depth_tex: {
- format: GL_DEPTH_COMPONENT24
- size: {width, height}
- }
- target: {
- attachments: [
- {
- texture: id_tex
- attachment: GL_COLOR_ATTACHMENT0
- drawbuffer: GL_COLOR_ATTACHMENT0
- }
- {
- texture: depth_tex
- attachment: GL_DEPTH_ATTACHMENT
- drawbuffer: GL_NONE
- }
- ]
- }
- shader: {
- vertex: "stencil.vert"
- fragment: "stencil.frag"
- }
- }
- pass_2: {
- uniforms: {
- view: camera.view
- projection: camera.projection
- id_map: pass_1.id_tex
- depth_map: pass_1.depth_tex
- }
- target: default
- shader: {
- vertex: "solid.vert"
- fragment: "solid.frag"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement