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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:40:34+00:00 2026-05-26T09:40:34+00:00

i got 2 dynamic texture ,and want add second texture color to first texture

  • 0

i got 2 dynamic texture ,and want add second texture color to first texture color But just where first texture color alpha is not 0
something like inverse transparncey
i add two pic link to show what is my mean:

http://img.7setare.com/images/k5znp5efpn1szfvwka.png
TO
http://img.7setare.com/images/vs4p0qx81zxxrfh1v8d5.png

just collisions part must add two texture pixel color

ty for your help

  • 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-05-26T09:40:35+00:00Added an answer on May 26, 2026 at 9:40 am

    just did it , works great

    sampler circleSampler : register(s1);
    sampler playerSampler : register(s0);
    
    float4 main(float4 color : COLOR0 ,float2 texCoord : TEXCOORD0):COLOR0
    {
    float4 output = float4(1,1,1,1);
    float4 CircColor = tex2D(circleSampler,texCoord);
    float4 playerColor = tex2D(playerSampler,texCoord);
    if (CircColor.a ==0)
    {
    output = playerColor;
    }
    else
    {
    output = CircColor* playerColor;
    }
    output.a = playerColor.a;
    return output;
    }
    
    technique Technique1
    {
        pass Pass1
        {
    
            PixelShader = compile ps_2_0 main();
        }
    }
    

    anyway ty for ur time

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

Sidebar

Related Questions

I've got some dynamic created buttons in my GridView (adding them OnDataBound), but when
I just got my hands on doing dynamic web programming using JSP. What is
Hi I've got this list of li's, containing dynamic classes(not always the same). There's
I've got a need to create a dynamic proxy in C#. I want this
I've got two similar codes. First #pragma omp parallel for shared(g) private(i) schedule(dynamic, 1)
I got a default scoping like this which is dynamic: default_scope :conditions => [departure_date
I got this code, I would like to optimize. I basically can add new
I've got a dynamic html table and I want to retrieve the data from
Has anybody got any kind of experience with dynamic programming using WCF. By dynamic
I've got a CMS that takes some dynamic content and renders it using a

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.