rhodonite
    Preparing search index...

    Function getTextureAndSamplerNames

    • Get texture and sampler variable names from a semantic name. If the name ends with 'Texture', it returns the name as the texture name and replaces 'Texture' with 'Sampler' for the sampler name. Otherwise, it appends 'Texture' and 'Sampler' suffixes to avoid name collision.

      Parameters

      • semanticName: string

        The semantic name of the texture uniform

      Returns { samplerName: string; textureName: string }

      An object containing textureName and samplerName