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"

Material SceneColor node sampler filtering

When using the SceneColor node in a Surface material, the default filtering seems to be bilinear filtering which is causing bleeding problems when the material is at the edge of the screen. I tried replacing this node with a custom node:

 return Texture2DSample(SceneColorTexture, SceneColorTextureSampler, UV).rgb;

...which I took from CalcSceneColor() in Engine/Shaders/Common.usf, and that gives me a point-filtered sampler instead of bilinear (I confirmed the difference between the two with RenderDoc).

I'm confused - I searched through the engine code, and the only place I can find code for the SceneColor node is in FHLSLMaterialTranslator::SceneColor() - but that inserts DecodeSceneColorForMaterialNode() which looks up LightAttenuationTexture and doesn't seem to be the right code at all (it fails to compile if I try to call this from my custom node).

Am I looking in the wrong place? Where is the code for SceneColor, and where does the bilinear filtering sampler used in the default SceneColor node come from? Is there a problem with doing a direct sample of SceneColorTexture in a custom node in a Surface material?

Product Version: UE 4.11
more ▼

asked May 28 '16 at 07:20 PM in Rendering

avatar image

21 1 3 7

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

0 answers: sort voted first
Be the first one to answer this question
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