Skip to content

Specular light doesn't work for backside of mesh #891

@pixtur

Description

@pixtur
Image Image Image

Please complete the following information):

  • OS: win 11
  • Version: 4.1 alpha
  • Graphics card and resolution GTX 3070

To Reproduce

  1. Paste example

Expected behavior
specular reflection should visible on back side of triangle

[{"Id":"78bea977-adef-4c76-8fb5-0f958ad30fa5"/*Object*/,"Inputs":[],"Children":[{"Id":"123d3d96-1044-411e-a0f6-a5c3d8b0b4e2"/*NormalMap*/,"SymbolId":"01458940-287f-4d31-9906-998efa9a2641","InputValues":[],"Outputs":[]},{"Id":"1957e1d3-30a0-418c-b795-8744c306c069"/*SetEnvironment*/,"SymbolId":"f3b66187-34b2-4018-8380-279f9f296ded","InputValues":[{"Id":"de6b9cb3-69ce-4b23-add6-a564648ec3a8"/*Fallback*/,"Type":"System.Int32","Value":2}],"Outputs":[]},{"Id":"21801571-40c5-474c-8061-c5af6e00e3c2"/*SetMaterial*/,"SymbolId":"0ed2bee3-641f-4b08-8685-df1506e9af3c","InputValues":[{"Id":"108ff533-f205-4989-b894-acf48e3cc1db"/*Metal*/,"Type":"System.Single","Value":0.1},{"Id":"9d5ca726-28b0-4f3d-a5aa-f0ae3e2043a9"/*Specular*/,"Type":"System.Single","Value":11.0},{"Id":"e14dcc43-7c18-4ed7-ad39-dfeab10e3d33"/*Roughness*/,"Type":"System.Single","Value":0.07}],"Outputs":[]},{"Id":"53434394-3842-4058-8dc2-f5cca6625a41"/*PointLight*/,"SymbolId":"9c67a8c8-839f-4f67-a949-08cb38b9dffd","InputValues":[{"Id":"f6d96a01-dc90-49c7-9152-a6a42bb05218"/*Position*/,"Type":"System.Numerics.Vector3","Value":{"X":0.0,"Y":0.0872003,"Z":0.0}}],"Outputs":[]},{"Id":"6a0a3cba-c3d5-46a2-bca5-fd05eedfa72e"/*FractalNoise*/,"SymbolId":"5a0b0485-7a55-4bf4-ae23-04f51d890334","InputValues":[],"Outputs":[]},{"Id":"ab5c2c8a-1a93-435f-8337-42c4f7c76aa7"/*MakeTileableImage*/,"SymbolId":"1e29f81b-0c05-4784-b3ac-c475ce510159","InputValues":[],"Outputs":[]},{"Id":"f1ff5c48-f747-4f84-b142-ba1ef778c090"/*DrawMesh*/,"SymbolId":"a3c5471e-079b-4d4b-886a-ec02d6428ff6","InputValues":[{"Id":"9e957f4a-6502-4905-8d97-331f8b54097c"/*Culling*/,"Type":"SharpDX.Direct3D11.CullMode","Value":"None"}],"Outputs":[]},{"Id":"fd5c1705-1c70-4f88-9285-4eb1832fd8cd"/*QuadMesh*/,"SymbolId":"9d6dbf28-9983-4584-abba-6281ce51d583","InputValues":[{"Id":"a89e41bf-5395-41f0-9804-a782ed4c0f30"/*Rotation*/,"Type":"System.Numerics.Vector3","Value":{"X":-100.0,"Y":0.0,"Z":0.0}}],"Outputs":[]}],"Connections":[{"SourceParentOrChildId":"ab5c2c8a-1a93-435f-8337-42c4f7c76aa7","SourceSlotId":"970d1691-47f4-43ce-937d-cad6a9c13922","TargetParentOrChildId":"123d3d96-1044-411e-a0f6-a5c3d8b0b4e2","TargetSlotId":"3b04296a-14e5-40e0-91a2-eda0314b0490"},{"SourceParentOrChildId":"53434394-3842-4058-8dc2-f5cca6625a41","SourceSlotId":"32b87a4d-bef3-4646-be76-8f8224ebd5c2","TargetParentOrChildId":"1957e1d3-30a0-418c-b795-8744c306c069","TargetSlotId":"e4482cab-f20c-4f9f-9179-c64944164509"},{"SourceParentOrChildId":"f1ff5c48-f747-4f84-b142-ba1ef778c090","SourceSlotId":"53b3fdca-9d5e-4808-a02f-4aa743cd8456","TargetParentOrChildId":"21801571-40c5-474c-8061-c5af6e00e3c2","TargetSlotId":"2a585a23-b60c-4c8b-8cfa-9ab2a8b04c7a"},{"SourceParentOrChildId":"123d3d96-1044-411e-a0f6-a5c3d8b0b4e2","SourceSlotId":"b1fa156b-a959-42f8-9a81-30a667d60554","TargetParentOrChildId":"21801571-40c5-474c-8061-c5af6e00e3c2","TargetSlotId":"600bbc24-6b3a-4ac4-9ceb-702e71c839e9"},{"SourceParentOrChildId":"21801571-40c5-474c-8061-c5af6e00e3c2","SourceSlotId":"d80e1028-a48d-4171-8c8c-e6856bd2143d","TargetParentOrChildId":"53434394-3842-4058-8dc2-f5cca6625a41","TargetSlotId":"55dc52d8-51a6-497a-9624-b118e0e27c65"},{"SourceParentOrChildId":"6a0a3cba-c3d5-46a2-bca5-fd05eedfa72e","SourceSlotId":"c85e033e-794c-4943-bf5d-545555df9360","TargetParentOrChildId":"ab5c2c8a-1a93-435f-8337-42c4f7c76aa7","TargetSlotId":"f09d6911-dd5f-4dac-a475-3ea291f04dfe"},{"SourceParentOrChildId":"fd5c1705-1c70-4f88-9285-4eb1832fd8cd","SourceSlotId":"9c86f704-a28f-4d2a-b7c0-15648f982462","TargetParentOrChildId":"f1ff5c48-f747-4f84-b142-ba1ef778c090","TargetSlotId":"97429e1f-3f30-4789-89a6-8e930e356ee6"}]},{"Id":"78bea977-adef-4c76-8fb5-0f958ad30fa5"/*Object*/,"Description":"","InputUis":[],"SymbolChildUis":[{"ChildId":"123d3d96-1044-411e-a0f6-a5c3d8b0b4e2"/*NormalMap*/,"Position":{"X":280.0,"Y":105.0}},{"ChildId":"1957e1d3-30a0-418c-b795-8744c306c069"/*SetEnvironment*/,"Position":{"X":420.0,"Y":175.0}},{"ChildId":"21801571-40c5-474c-8061-c5af6e00e3c2"/*SetMaterial*/,"Position":{"X":420.0,"Y":70.0}},{"ChildId":"53434394-3842-4058-8dc2-f5cca6625a41"/*PointLight*/,"Position":{"X":420.0,"Y":140.0}},{"ChildId":"6a0a3cba-c3d5-46a2-bca5-fd05eedfa72e"/*FractalNoise*/,"Position":{"X":0.0,"Y":105.0}},{"ChildId":"ab5c2c8a-1a93-435f-8337-42c4f7c76aa7"/*MakeTileableImage*/,"Position":{"X":140.0,"Y":105.0}},{"ChildId":"f1ff5c48-f747-4f84-b142-ba1ef778c090"/*DrawMesh*/,"Position":{"X":420.0,"Y":35.0}},{"ChildId":"fd5c1705-1c70-4f88-9285-4eb1832fd8cd"/*QuadMesh*/,"Position":{"X":420.0,"Y":0.0}}],"OutputUis":[]}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions