x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Can I color point-rendered GPU-particles with texture sampling?

I'm working on implementing shadowed particles on 4.8.1, and want to render points rather than quads, (though quads may work too.) To do this, I'd like to use a pair of texture maps, alternating between them for reads & writes. One step at a time, though: Can I sample a texture in a shader material assigned to a particle system, and select the particle color as a result? I'll save step 2 for a follow-up question...

Product Version: UE 4.8
Tags:
more ▼

asked Jul 09 '15 at 04:35 PM in Rendering

avatar image

Jianju
1 2 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Jianju -

With some Custom HLSL you could sample a texture and pass the color into the Base Color or Emissive Color of the Shader and have the particle completely ignore color via Cascade, but without some additional C++ source changes, you cannot sample a texture and pass that linear color value into Cascade's Particle Color modules.

Thank You

Eric Ketchum

more ▼

answered Jul 16 '15 at 02:50 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.6k 703 260 737

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question