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 8675287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:54:49+00:00 2026-06-12T19:54:49+00:00

How do I add a 2nd texture uniform in the Kick.js shader editor so

  • 0

How do I add a 2nd texture uniform in the Kick.js shader editor so my shader can use it? The URL for Kick.js is:
http://www.kickjs.org/example/shader_editor/shader_editor.html

I modified the default shader in Kick.js. It uses one texture. I successfully used the ‘Textures’ panel to add a 2nd texture by referencing an image I found with images.google.com.

Now the problem is that the ‘Uniforms’ panel does not show the texture sampler uniform. How can I make this uniform appear?

By the way, here is my shader code. However, I do not believe this code is part of the problem. Thanks for any help.

#ifdef GL_ES
precision highp float;
#endif
varying vec3 vColor;
varying vec2 uv;

uniform sampler2D video_tex;
uniform sampler2D video_mask;

void main(void)
{
    vec4 samp_video = texture2D(video_tex,uv);
    vec4 samp_mask = texture2D(video_mask,uv);

    vec3 samp_virtual = vec3(1,0,0);

    float alpha = samp_mask.r;
    //gl_FragColor.rgb = (alpha)*samp_virtual.rgb + (1.0-alpha)*samp_video.rgb;
    gl_FragColor.rgb = samp_mask.rgb;  
    gl_FragColor.a = 1.0;
}
  • 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-12T19:54:50+00:00Added an answer on June 12, 2026 at 7:54 pm

    You code works just fine 🙂

    You need to bind the textures to the uniform variables. The process takes two steps:

    1. Set the textures (in the Textures panel). enter image description here
    2. Setup the uniforms to bind your uniform variables to the texture enter image description here
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can i add DataID and password in an HTTP header. something like shown
I want to add SuperScript to number in C# . Example: 1st, 2nd ......
need to add a 2nd css stylesheet to a page. do i add a
I add my url xxx/getjson.php to a webhook and once a person signup, it
I am trying to add a 2nd menu control in the same line with
I have a site where people can add their favorite TV shows. I would
Minimal example is really the 2nd example from Rings main page requirerings local init_cmd
How to add a new column in a table after the 2nd or 3rd
The problem I have : I click add I select 2nd option I click
The .add method appends components to the end of another component. I'm trying 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.