Results 1 to 2 of 2

Thread: Blending with multiplication

  1. #1
    Senior Member Regular Contributor
    Join Date
    Feb 2001
    Location
    Gothenburg, Sweden
    Posts
    100

    Blending with multiplication

    Hi!

    glBlendEquation only allows addition and subtraction. Is it possible to do rgb-multiplication with the frame buffer as well?

    (For example to do multipass rendering, base texture + multichromatic lightmaps.)
    --
    /Marcus

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    FRANCE
    Posts
    147

    Re: Blending with multiplication

    You can do a multiplication with multiple pass (glBlendOp) or in a single pass with multitexturing.

    with the glBlendFunc(GL_DSTCOLOR, GL_ZERO) you should multiply

    result = src * GL_DSTCOLOR + 0

    Hope it helps
    Arath

Similar Threads

  1. about Matrix Multiplication
    By cl781121 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-24-2016, 09:57 PM
  2. Matrix Multiplication
    By wrx in forum OpenCL
    Replies: 18
    Last Post: 02-17-2011, 01:24 AM
  3. Matrix Multiplication
    By Jose Ricardo in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 12-08-2009, 08:47 PM
  4. Matrix Multiplication
    By Syslock in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 07-22-2002, 09:52 AM
  5. Matrix multiplication
    By martinjy in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-18-2001, 06:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean