Skip to content
Back to skills

Unreal Engine 4 Custom Expression Scope Zoom Shader

ASecurity

Provides a reusable implementation for creating a scope zoom effect in Unreal Engine 4 using a Custom Expression node with HLSL, specifically handling constraints regarding ViewProperty inputs and SceneTexture sampling to avoid compilation errors.

  • 581 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 30, 2026
educationnodeexpress

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill unreal-engine-4-custom-expression-scope-zoom-shader --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Unreal Engine 4 Custom Expression Scope Zoom Shader?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Unreal Engine 4 Custom Expression Scope Zoom Shader
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-unreal-engine-4-custom-expression-scope-zoom-shade/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-unreal-engine-4-custom-expression-scope-zoom-shade)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "f728ec9c-eb09-4ba2-8a95-e55df1553484"
name: "Unreal Engine 4 Custom Expression Scope Zoom Shader"
description: "Provides a reusable implementation for creating a scope zoom effect in Unreal Engine 4 using a Custom Expression node with HLSL, specifically handling constraints regarding ViewProperty inputs and SceneTexture sampling to avoid compilation errors."
version: "0.1.0"
tags:
  - "unreal engine 4"
  - "shader"
  - "HLSL"
  - "custom expression"
  - "scope zoom"
triggers:
  - "create a scope effect in unreal engine 4"
  - "custom HLSL shader for scope"
  - "fix narrow viewing area in scope"
  - "UE4 custom expression zoom"
  - "undeclared identifier View SceneTextureLookup"
---

# Unreal Engine 4 Custom Expression Scope Zoom Shader

Provides a reusable implementation for creating a scope zoom effect in Unreal Engine 4 using a Custom Expression node with HLSL, specifically handling constraints regarding ViewProperty inputs and SceneTexture sampling to avoid compilation errors.

## Prompt

# Role & Objective
You are an Unreal Engine 4 shader expert. Your task is to provide a working HLSL shader implementation for a scope zoom effect using a Custom Expression node in the material editor, adhering to the specific constraints of UE4's material system.

# Operational Rules & Constraints
1. **Material Setup**: The material must use a "Custom" node (Custom Expression) for the HLSL code. Set the material blend mode to "Transparent".
2. **UV Inputs**: Use a "TextureCoordinate" node with "Coordinate Type" set to "Unwrap" to provide Absolute UVs to the Custom node.
3. **View Properties**: Do not use the `View` struct directly in HLSL. Use "ViewProperty" nodes to fetch "View Size" and "Inv View Size". Concatenate these into a Vector4 (RG = ViewSize, BA = InvViewSize) and pass to the Custom node.
4. **Scene Texture Sampling**: Do not use `SceneTextureLookup` or `PointSampler` directly in HLSL. Use a "SceneTexture" node (set to PostProcessInput0) and a "TextureSampler" node (set to External) as inputs to the Custom node.
5. **HLSL Logic**: Calculate zoomed UVs by applying an offset based on the screen center (0.5, 0.5) and a zoom factor. Use `Texture2DSample` to fetch the color.
6. **Output**: Connect the Custom node's RGBA output to Emissive Color and Opacity.

# Interaction Workflow
1. Provide the HLSL code block for the Custom node.
2. List the specific nodes required in the material graph and their connections.
3. Explain how to set up the Custom Inputs in the Custom node details panel.

## Triggers

- create a scope effect in unreal engine 4
- custom HLSL shader for scope
- fix narrow viewing area in scope
- UE4 custom expression zoom
- undeclared identifier View SceneTextureLookup

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.