Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

OSX and GL2.1 and 64bit #330

Open
Open

Description

@bilgili

Because of the integer texture sampler restrictions we can not use the same code path, we are using with the current GL4 renderer. The sampling of integer textures are supported from 1.30 and on.

For GL2.1 to work textures should be in normalized form and, this means substantial amount of code change in TexturePool, Renderer and the fragment shader.

Activity

  1. eile commented on Aug 31, 2016

    @eile
    Contributor

    I'm not fully understanding: By integer and normalized do you mean GL_TEXTURE_RECTANGLE and GL_TEXTURE_2D 'addressing', or do the GL2 texture values need to be normalized? I.e., what does the integer in integer textures refer to, and what does the normalized form refer to?

  2. bilgili commented on Aug 31, 2016

    @bilgili
    ContributorAuthor

    Simply Sampler3D in the shaders cannot be used with integer textures, where now we are using absolute values of the data as textures with the latest changes so that we can use transfer functions as they are. I recommend you reading the glTexImage3D texture formats. The textures are normalized when you put into GPU memory or not. We are putting them as they are.

  3. hernando commented on Sep 1, 2016

    @hernando
    Contributor

    Try adding

    #extension GL_EXT_gpu_shader4 : enable
    

    in the GLSL shaders using integer texture samplers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions