Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8152163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:38:01+00:00 2026-06-06T15:38:01+00:00

Is it possible to compose several fragment shaders in sequence under GLSL ES? I

  • 0

Is it possible to compose several fragment shaders in sequence under GLSL ES? I want to use two shaders S1 and S2 where S2 uses several fragments output by S1. For example, I’d like to apply two convolutions in sequence, in which case the second convolution needs access to the output of the first convolution at a bunch of pixel locations.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T15:38:03+00:00Added an answer on June 6, 2026 at 3:38 pm

    Yes, however this requires the use of one of two techniques.
    The first an easiest is called multi-pass rendering.
    In it you render the results of S1 to a texture then render S2 reading from the texture that holds the results of S1. However this is a bit inefficient as it removes some of the parallelism that is possible with a GPU. So it is often recommended that you use something called pipeling. This is a bit more complicated.

    1. Create 2*N number of textures where N is the number of shaders. This is so that each shader can have both a read and a write texture.
    2. Render every shader at once, reading from the read texture for the shader before it, and write to write texture.
    3. At the end of each frame, swap the read and write textures.

    This results in multiple iterations being computed at the same time. However each iteration is finished after N iterations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How can i use compose email activity in tabView? I want to
Possible Duplicates: Why is lock(this) {...} bad? In C# it is common to use
Possible Duplicate: New Cool Features of C# 4.0 Hello, There are several(many) questions at
I'm curious if it's possible to take several conditional functions and create one function
I was wondering if it is possible in a mysql stored-function or stored-procedure compose
I want to compose my plugins with MEF (Managed Extensibility Framework) and run them
Given a set of two or more logical conditions, is it possible to algorithmically
Is that possible to have a look on the layout for the Compose message
I'd like to know if it's possible to compose my own component (or call
Is it possible to send an anonymous message to an object? I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.